summaryrefslogtreecommitdiff
path: root/http/utility.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-03-09 05:42:36 +0300
committerEd Tanous <ed@tanous.net>2022-03-10 20:41:03 +0300
commit1b829889db64dd738660e62de633f1c028b3444c (patch)
tree0c7e416c93eec60df94a7b265afc1edc608874d7 /http/utility.hpp
parent4456f0812c415f7cb9bad12b27f1c1f9af24f9c3 (diff)
downloadbmcweb-1b829889db64dd738660e62de633f1c028b3444c.tar.xz
Remove unused utility classes
These are no longer used. Tested: Code compiles Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Id712a413c4c84f80b9e352c916032537308fc8c3
Diffstat (limited to 'http/utility.hpp')
-rw-r--r--http/utility.hpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/http/utility.hpp b/http/utility.hpp
index 32e3b28b51..07fc1ee2dd 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -334,38 +334,8 @@ struct Promote<unsigned long long>
} // namespace black_magic
-namespace detail
-{
-
-template <class T, std::size_t N, class... Args>
-struct GetIndexOfElementFromTupleByTypeImpl
-{
- static constexpr std::size_t value = N;
-};
-
-template <class T, std::size_t N, class... Args>
-struct GetIndexOfElementFromTupleByTypeImpl<T, N, T, Args...>
-{
- static constexpr std::size_t value = N;
-};
-
-template <class T, std::size_t N, class U, class... Args>
-struct GetIndexOfElementFromTupleByTypeImpl<T, N, U, Args...>
-{
- static constexpr std::size_t value =
- GetIndexOfElementFromTupleByTypeImpl<T, N + 1, Args...>::value;
-};
-
-} // namespace detail
-
namespace utility
{
-template <class T, class... Args>
-T& getElementByType(std::tuple<Args...>& t)
-{
- return std::get<
- detail::GetIndexOfElementFromTupleByTypeImpl<T, 0, Args...>::value>(t);
-}
template <typename T>
struct function_traits;