aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-01-27 16:19:45 +0300
committerbabenko <babenko@yandex-team.com>2024-01-27 16:42:19 +0300
commitbbacc05ccfcee10c65bc0c3da9bb2d266ec41833 (patch)
tree32b0f60354641ae6c917623f1cd6256a3ce088ed /library/cpp/yt/string
parent6e1358a430ae27360d66469823eb84f18a5342c3 (diff)
downloadydb-bbacc05ccfcee10c65bc0c3da9bb2d266ec41833.tar.gz
Drop TEnumIndexedVector
Diffstat (limited to 'library/cpp/yt/string')
-rw-r--r--library/cpp/yt/string/format-inl.h21
-rw-r--r--library/cpp/yt/string/unittests/enum_ut.cpp1
2 files changed, 0 insertions, 22 deletions
diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h
index c198fdcd65..776b48e7fb 100644
--- a/library/cpp/yt/string/format-inl.h
+++ b/library/cpp/yt/string/format-inl.h
@@ -415,27 +415,6 @@ struct TValueFormatter<TEnumIndexedArray<E, T>>
}
};
-// TEnumIndexedVector
-template <class E, class T>
-struct TValueFormatter<TEnumIndexedVector<E, T>>
-{
- static void Do(TStringBuilderBase* builder, const TEnumIndexedVector<E, T>& collection, TStringBuf format)
- {
- builder->AppendChar('{');
- bool firstItem = true;
- for (const auto& index : TEnumTraits<E>::GetDomainValues()) {
- if (!firstItem) {
- builder->AppendString(DefaultJoinToStringDelimiter);
- }
- FormatValue(builder, index, format);
- builder->AppendString(": ");
- FormatValue(builder, collection[index], format);
- firstItem = false;
- }
- builder->AppendChar('}');
- }
-};
-
// std::pair
template <class T1, class T2>
struct TValueFormatter<std::pair<T1, T2>>
diff --git a/library/cpp/yt/string/unittests/enum_ut.cpp b/library/cpp/yt/string/unittests/enum_ut.cpp
index 91a8b04500..2c368e85d4 100644
--- a/library/cpp/yt/string/unittests/enum_ut.cpp
+++ b/library/cpp/yt/string/unittests/enum_ut.cpp
@@ -14,7 +14,6 @@ namespace {
DEFINE_ENUM(ESample, (One)(Two));
static_assert(TFormatTraits<ESample>::HasCustomFormatValue);
static_assert(TFormatTraits<TEnumIndexedArray<ESample, int>>::HasCustomFormatValue);
-static_assert(TFormatTraits<TEnumIndexedVector<ESample, int>>::HasCustomFormatValue);
DEFINE_ENUM(EColor,
(Red)