diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-11-30 22:35:41 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-12-10 23:54:40 +0300 |
commit | 1b6b96c570fdf7ca5c643f3d0776581656e78070 (patch) | |
tree | d96338cf9f95ea763e4fb6570d83e4d1808d3f41 /include/dbus_singleton.hpp | |
parent | 789a6a317b51abba38cf064dd5ee2abd051d02bf (diff) | |
download | bmcweb-1b6b96c570fdf7ca5c643f3d0776581656e78070.tar.xz |
Remove custom version of getPtr
Now that sdbusplus variant supports std::get_if, we can remove our
custom, mapbox namespaced implementation that does the same thing.
Change-Id: I854c473003e28e41dd45dba08ca683433f1c1774
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'include/dbus_singleton.hpp')
-rw-r--r-- | include/dbus_singleton.hpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/dbus_singleton.hpp b/include/dbus_singleton.hpp index 9fe966f565..63c88b7544 100644 --- a/include/dbus_singleton.hpp +++ b/include/dbus_singleton.hpp @@ -1,18 +1,5 @@ #pragma once -#include <iostream> #include <sdbusplus/asio/connection.hpp> -#include <sdbusplus/message/types.hpp> -#include <type_traits> - -namespace mapbox -{ -template <typename T, typename... Types> -const T* getPtr(const sdbusplus::message::variant<Types...>& v) -{ - namespace variant_ns = sdbusplus::message::variant_ns; - return variant_ns::get_if<std::remove_const_t<T>, Types...>(&v); -} -} // namespace mapbox namespace crow { |