From 1b6b96c570fdf7ca5c643f3d0776581656e78070 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Fri, 30 Nov 2018 11:35:41 -0800 Subject: 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 --- include/dbus_singleton.hpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'include/dbus_singleton.hpp') 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 #include -#include -#include - -namespace mapbox -{ -template -const T* getPtr(const sdbusplus::message::variant& v) -{ - namespace variant_ns = sdbusplus::message::variant_ns; - return variant_ns::get_if, Types...>(&v); -} -} // namespace mapbox namespace crow { -- cgit v1.2.3