diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-06-28 21:58:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-06-28 21:58:03 +0300 |
commit | 04cb855dd32a856dab4ec1f0695c88b170c50d58 (patch) | |
tree | c43a6f5659ae45316af8f834539cad1ffd5d09f2 | |
parent | e10c657371a057bbe8e327938ca361cb7aa9b497 (diff) | |
download | ydb-04cb855dd32a856dab4ec1f0695c88b170c50d58.tar.gz |
Remove unused code. KIKIMR-15211
ref:49ae48124ae19391b45de047cbce2bfb75844112
-rw-r--r-- | ydb/core/scheme_types/scheme_type_traits.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/ydb/core/scheme_types/scheme_type_traits.h b/ydb/core/scheme_types/scheme_type_traits.h deleted file mode 100644 index 7e07f95976a..00000000000 --- a/ydb/core/scheme_types/scheme_type_traits.h +++ /dev/null @@ -1,57 +0,0 @@ -#pragma once - -#include <ydb/public/lib/scheme_types/scheme_type_id.h> - -namespace NKikimr { -namespace NScheme { - -constexpr bool IsNumericType(TTypeId id) noexcept { - return NTypeIds::Int8 == id - || NTypeIds::Uint8 == id - || NTypeIds::Int16 == id - || NTypeIds::Uint16 == id - || NTypeIds::Int32 == id - || NTypeIds::Uint32 == id - || NTypeIds::Int64 == id - || NTypeIds::Uint64 == id - || NTypeIds::Double == id - || NTypeIds::Float == id; -} - -constexpr bool IsIntegralType(TTypeId id) noexcept { - return NTypeIds::Int8 == id - || NTypeIds::Uint8 == id - || NTypeIds::Int16 == id - || NTypeIds::Uint16 == id - || NTypeIds::Int32 == id - || NTypeIds::Uint32 == id - || NTypeIds::Int64 == id - || NTypeIds::Uint64 == id; -} - -constexpr bool IsSignedIntegerType(TTypeId id) noexcept { - return NTypeIds::Int8 == id || NTypeIds::Int16 == id || NTypeIds::Int32 == id || NTypeIds::Int64 == id; -} - -constexpr bool IsUnsignedIntegerType(TTypeId id) noexcept { - return NTypeIds::Uint8 == id || NTypeIds::Uint16 == id || NTypeIds::Uint32 == id || NTypeIds::Uint64 == id; -} - -constexpr bool IsFloatingType(TTypeId id) noexcept { - return NTypeIds::Double == id || NTypeIds::Float == id; -} - -constexpr bool IsStringType(TTypeId id) noexcept { - return NTypeIds::String == id - || NTypeIds::String4k == id - || NTypeIds::String2m == id - || NTypeIds::Utf8 == id - || NTypeIds::Yson == id - || NTypeIds::Json == id - || NTypeIds::JsonDocument == id - || NTypeIds::DyNumber - ; -} - -} // namspace NScheme -} // namspace NKikimr |