From ed19cea94d36aa8a0bc30b88814e6e4b1b95221b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 24 Apr 2017 12:13:55 +0200 Subject: [PATCH] Remove some declarations from Common.h --- libdevcore/Common.h | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/libdevcore/Common.h b/libdevcore/Common.h index dba0531de..8ddbdead8 100644 --- a/libdevcore/Common.h +++ b/libdevcore/Common.h @@ -62,8 +62,6 @@ namespace dev extern char const* Version; -static const std::string EmptyString; - // Binary data types. using bytes = std::vector; using bytesRef = vector_ref; @@ -124,18 +122,6 @@ using u160s = std::vector; using u256Set = std::set; using u160Set = std::set; -extern const u256 UndefinedU256; - -// Map types. -using StringMap = std::map; -using BytesMap = std::map; -using u256Map = std::map; -using HexMap = std::map; - -// Hash types. -using StringHashMap = std::unordered_map; -using u256HashMap = std::unordered_map; - // String types. using strings = std::vector; @@ -151,19 +137,4 @@ std::string toString(_T const& _t) return o.str(); } -} - -namespace std -{ - -template <> struct hash -{ - size_t operator()(dev::u256 const& _a) const - { - unsigned size = _a.backend().size(); - auto limbs = _a.backend().limbs(); - return boost::hash_range(limbs, limbs + size); - } -}; - -} +} \ No newline at end of file