aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2023-02-28 12:11:27 +0300
committerbabenko <babenko@yandex-team.com>2023-02-28 12:11:27 +0300
commit9a99d1fc529ec594c7fcfd464e824d097b663d3b (patch)
treee61080eb5d444e9328a782952e45d7e3c66b9ccd /library/cpp
parent9728c69ba0b0bb42c4bbbd872110add535b69207 (diff)
downloadydb-9a99d1fc529ec594c7fcfd464e824d097b663d3b.tar.gz
RIP DenseMap
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/misc/enum.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/library/cpp/yt/misc/enum.h b/library/cpp/yt/misc/enum.h
index 774fa0fdf8..1353900996 100644
--- a/library/cpp/yt/misc/enum.h
+++ b/library/cpp/yt/misc/enum.h
@@ -69,32 +69,6 @@ struct TEnumTraits<T, true>
// For bit enums only.
static std::vector<TType> Decompose(TType value);
-
- // LLVM SmallDenseMap interop.
- // This should only be used for enums whose underlying type has big enough range
- // (see getEmptyKey and getTombstoneKey functions).
- struct TDenseMapInfo
- {
- static inline TType getEmptyKey()
- {
- return static_cast<TType>(-1);
- }
-
- static inline TType getTombstoneKey()
- {
- return static_cast<TType>(-2);
- }
-
- static unsigned getHashValue(const TType& key)
- {
- return static_cast<unsigned>(key) * 37U;
- }
-
- static bool isEqual(const TType& lhs, const TType& rhs)
- {
- return lhs == rhs;
- }
- };
};
////////////////////////////////////////////////////////////////////////////////