summaryrefslogtreecommitdiff
path: root/ipc/chromium/src/base/file_path.h
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2022-09-04 23:05:10 -0500
committerBrian Smith <brian@dbsoft.org>2022-09-04 23:05:10 -0500
commitf369fbd6f7d2b0c74d482511bb16afbfc7856d11 (patch)
tree336e03f28773c2d0cfe8c28d0b888e834bfd2008 /ipc/chromium/src/base/file_path.h
parent2db2e0fe58c8c844896541ce892695ee9b1c1452 (diff)
downloaduxp-f369fbd6f7d2b0c74d482511bb16afbfc7856d11.tar.gz
Issue #2000 - Stop using deprecated ext/hash_map.
This has been long deprecated in favor of std::unsorted_map. Since all platforms are using modern compilers now it should not be a problem to switch over to std::unsorted_map in the single place hash_map is used. This allows us to build on platforms which have removed hash_map such as FreeBSD.
Diffstat (limited to 'ipc/chromium/src/base/file_path.h')
-rw-r--r--ipc/chromium/src/base/file_path.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/ipc/chromium/src/base/file_path.h b/ipc/chromium/src/base/file_path.h
index 42708a5241..eda2596d2d 100644
--- a/ipc/chromium/src/base/file_path.h
+++ b/ipc/chromium/src/base/file_path.h
@@ -70,7 +70,6 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/hash_tables.h"
// Windows-style drive letter support and pathname separator characters can be
// enabled and disabled independently, to aid testing. These #defines are
@@ -251,26 +250,4 @@ class FilePath {
#define FILE_PATH_LITERAL(x) L ## x
#endif // OS_WIN
-// Implement hash function so that we can use FilePaths in hashsets and maps.
-#if defined(COMPILER_GCC)
-namespace __gnu_cxx {
-
-template<>
-struct hash<FilePath> {
- size_t operator()(const FilePath& f) const {
- return hash<FilePath::StringType>()(f.value());
- }
-};
-
-} // namespace __gnu_cxx
-#elif defined(COMPILER_MSVC)
-namespace stdext {
-
-inline size_t hash_value(const FilePath& f) {
- return hash_value(f.value());
-}
-
-} // namespace stdext
-#endif // COMPILER
-
#endif // BASE_FILE_PATH_H_