summaryrefslogtreecommitdiff
path: root/http/utility.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-06-26 22:09:40 +0300
committerEd Tanous <ed@tanous.net>2023-06-27 20:48:35 +0300
commit09edb4fa0d30f9704098573904b3954e8864b7b1 (patch)
tree475fa3b62c3d4bd52c008cf8c383a4d2007ed8d2 /http/utility.hpp
parent3e871dbc7b158ac7d607dce0c0d1e4cf2206a9a4 (diff)
downloadbmcweb-09edb4fa0d30f9704098573904b3954e8864b7b1.tar.xz
Remove computeParameterTagFromArgsList
This is no longer required, and was used previously when the router was more complex. Remove the unused methods. Usage of this was removed in: 15a42df0 Remove number support from the router Tested: Code compiles. Change-Id: Idd8b3e928077efc929b951f3bf520105ceea72e3 Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'http/utility.hpp')
-rw-r--r--http/utility.hpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/http/utility.hpp b/http/utility.hpp
index 4d68e8f6fb..59ddf98832 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -46,24 +46,6 @@ constexpr typename std::underlying_type<E>::type toUnderlying(E e) noexcept
return static_cast<typename std::underlying_type<E>::type>(e);
}
-template <typename... Args>
-struct computeParameterTagFromArgsList;
-
-template <>
-struct computeParameterTagFromArgsList<>
-{
- static constexpr int value = 0;
-};
-
-template <typename Arg, typename... Args>
-struct computeParameterTagFromArgsList<Arg, Args...>
-{
- static_assert(std::is_same_v<std::string, std::decay_t<Arg>>);
- static constexpr int subValue =
- computeParameterTagFromArgsList<Args...>::value;
- static constexpr int value = subValue * toUnderlying(TypeCode::String);
-};
-
constexpr inline uint64_t getParameterTag(std::string_view url)
{
uint64_t tagValue = 0;