aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/system.h')
-rw-r--r--src/util/system.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/util/system.h b/src/util/system.h
index 463713d565..719cd28f97 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -13,7 +13,6 @@
#include <compat/assumptions.h>
#include <compat/compat.h>
-#include <any>
#include <set>
#include <stdint.h>
#include <string>
@@ -36,20 +35,4 @@ void runCommand(const std::string& strCommand);
*/
int GetNumCores();
-namespace util {
-
-/**
- * Helper function to access the contained object of a std::any instance.
- * Returns a pointer to the object if passed instance has a value and the type
- * matches, nullptr otherwise.
- */
-template<typename T>
-T* AnyPtr(const std::any& any) noexcept
-{
- T* const* ptr = std::any_cast<T*>(&any);
- return ptr ? *ptr : nullptr;
-}
-
-} // namespace util
-
#endif // BITCOIN_UTIL_SYSTEM_H