summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-30 22:08:13 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-30 22:08:13 +0000
commite89cc6cbd6be19a70fb12d7c357a728f42f325ee (patch)
tree7d843e6d22d5e22cd753c2da443d9ecdcb65b62b /src/util
parentclang-format bspline lpe files (diff)
parentAdded "Gtk::" scope to "manage" function calls. (diff)
downloadinkscape-e89cc6cbd6be19a70fb12d7c357a728f42f325ee.tar.gz
inkscape-e89cc6cbd6be19a70fb12d7c357a728f42f325ee.zip
update to trunk
(bzr r11950.1.317)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/unordered-containers.h31
1 files changed, 0 insertions, 31 deletions
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<Glib::ustring> : public std::unary_function<Glib::ustring, std::size
}
};
} // namespace boost
-
-#elif defined(HAVE_EXT_HASH_SET)
-
-# include <functional>
-# include <ext/hash_set>
-# include <ext/hash_map>
-# define INK_UNORDERED_SET __gnu_cxx::hash_set
-# define INK_UNORDERED_MAP __gnu_cxx::hash_map
-# define INK_HASH __gnu_cxx::hash
-
-#include <cstddef>
-
-namespace __gnu_cxx {
-// hash function for pointers
-// TR1 and Boost have this defined by default, __gnu_cxx doesn't
-template<typename T>
-struct hash<T *> : public std::unary_function<T *, std::size_t> {
- std::size_t operator()(T *p) const {
- // Taken from Boost
- std::size_t x = static_cast<std::size_t>(reinterpret_cast<std::ptrdiff_t>(p));
- return x + (x >> 3);
- }
-};
-
-template <>
-struct hash<Glib::ustring> : public std::unary_function<Glib::ustring, std::size_t> {
- std::size_t operator()(Glib::ustring const &s) const {
- return hash<std::string>()(s.raw());
- }
-};
-} // namespace __gnu_cxx
#endif
#else