From: Yedidya Feldblum Date: Mon, 15 May 2017 19:31:24 +0000 (-0700) Subject: Drop support for deprecated associative containers X-Git-Tag: v2017.05.22.00~16 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=7d151d2c1c702c8929b752b63017f063de2c23db Drop support for deprecated associative containers Summary: [Folly] Drop support for deprecated associative containers. Namely, `__gnu_cxx::hash_set` and `__gnu_cxx::hash_map`. Reviewed By: wqfish Differential Revision: D5058813 fbshipit-source-id: ebbcf10765f5d06776ee8f697cfb78614a3a566c --- diff --git a/folly/FBString.h b/folly/FBString.h index 0ff4ba9e..45ba6cb5 100644 --- a/folly/FBString.h +++ b/folly/FBString.h @@ -58,13 +58,6 @@ #include #include -#if FOLLY_HAVE_DEPRECATED_ASSOC -#ifdef _GLIBCXX_SYMVER -#include -#include -#endif -#endif - // When used in folly, assertions are not disabled. #define FBSTRING_ASSERT(expr) assert(expr) @@ -2874,16 +2867,6 @@ FOLLY_FBSTRING_HASH } // namespace std -#if FOLLY_HAVE_DEPRECATED_ASSOC -#if defined(_GLIBCXX_SYMVER) && !defined(__BIONIC__) -namespace __gnu_cxx { - -FOLLY_FBSTRING_HASH - -} // namespace __gnu_cxx -#endif // _GLIBCXX_SYMVER && !__BIONIC__ -#endif // FOLLY_HAVE_DEPRECATED_ASSOC - #undef FOLLY_FBSTRING_HASH #undef FOLLY_FBSTRING_HASH1 diff --git a/folly/String.h b/folly/String.h index 39dc11e3..80d3e232 100644 --- a/folly/String.h +++ b/folly/String.h @@ -24,13 +24,6 @@ #include #include -#ifdef FOLLY_HAVE_DEPRECATED_ASSOC -#ifdef _GLIBCXX_SYMVER -#include -#include -#endif -#endif - #include #include diff --git a/folly/configure.ac b/folly/configure.ac index 185b25e0..ebcabe0e 100644 --- a/folly/configure.ac +++ b/folly/configure.ac @@ -28,13 +28,6 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2 nostdinc subdir-objects]) AC_CONFIG_MACRO_DIR([m4]) -AX_CONFIG_FEATURE_DEFAULT_DISABLED -AX_CONFIG_FEATURE( - [deprecated-assoc], - [supports deprecated associative containers (hash_map/hash_set)], - [HAVE_DEPRECATED_ASSOC], - [Define if you want to support deprecated associative containers]) - AC_PROG_INSTALL AM_PROG_LIBTOOL diff --git a/folly/test/AtomicHashMapTest.cpp b/folly/test/AtomicHashMapTest.cpp index 6fb8d84f..e3f3ab00 100644 --- a/folly/test/AtomicHashMapTest.cpp +++ b/folly/test/AtomicHashMapTest.cpp @@ -403,7 +403,7 @@ namespace { inline KeyT randomizeKey(int key) { // We deterministically randomize the key to more accurately simulate // real-world usage, and to avoid pathalogical performance patterns (e.g. - // those related to __gnu_cxx::hash()(1) == 1). + // those related to std::hash()(1) == 1). // // Use a hash function we don't normally use for ints to avoid interactions. return folly::hash::jenkins_rev_mix32(key);