From c238cf70cf7cd2b3ad6e347076e15d74304294c2 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Sun, 30 Mar 2014 13:39:02 +0100 Subject: End support for obsolete GNU hash. Supported either natively, through TR1 or Boost now Fixed bugs: - https://launchpad.net/bugs/1269346 (bzr r13231) --- src/util/unordered-containers.h | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src/util') diff --git a/src/util/unordered-containers.h b/src/util/unordered-containers.h index 98c2fa3c9..b92f2e7ea 100644 --- a/src/util/unordered-containers.h +++ b/src/util/unordered-containers.h @@ -69,37 +69,6 @@ struct hash : public std::unary_function -# include -# include -# define INK_UNORDERED_SET __gnu_cxx::hash_set -# define INK_UNORDERED_MAP __gnu_cxx::hash_map -# define INK_HASH __gnu_cxx::hash - -#include - -namespace __gnu_cxx { -// hash function for pointers -// TR1 and Boost have this defined by default, __gnu_cxx doesn't -template -struct hash : public std::unary_function { - std::size_t operator()(T *p) const { - // Taken from Boost - std::size_t x = static_cast(reinterpret_cast(p)); - return x + (x >> 3); - } -}; - -template <> -struct hash : public std::unary_function { - std::size_t operator()(Glib::ustring const &s) const { - return hash()(s.raw()); - } -}; -} // namespace __gnu_cxx #endif #else -- cgit v1.2.3