aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-01 14:20:05 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-01 14:20:05 +0300
commitc1a5a70d103a7f61424a2e38f329e7a0ef64ca21 (patch)
tree55128369ff5ee1665005720cd8d3ecd8c6d8ec51 /library
parent5851ebf34ccf875108e9668f6ddf7ab0f86fade4 (diff)
downloadydb-c1a5a70d103a7f61424a2e38f329e7a0ef64ca21.tar.gz
intermediate changes
ref:2df36b497633117a29cc1f8faf1dd4e7be3eff87
Diffstat (limited to 'library')
-rw-r--r--library/cpp/int128/int128_common.h1
-rw-r--r--library/cpp/testing/unittest/example_ut.cpp12
-rw-r--r--library/cpp/yson/string-inl.h57
3 files changed, 0 insertions, 70 deletions
diff --git a/library/cpp/int128/int128_common.h b/library/cpp/int128/int128_common.h
deleted file mode 100644
index 6f70f09bee..0000000000
--- a/library/cpp/int128/int128_common.h
+++ /dev/null
@@ -1 +0,0 @@
-#pragma once
diff --git a/library/cpp/testing/unittest/example_ut.cpp b/library/cpp/testing/unittest/example_ut.cpp
deleted file mode 100644
index bcc1ce33f0..0000000000
--- a/library/cpp/testing/unittest/example_ut.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <library/cpp/testing/unittest/registar.h>
-
-/*
- * just copy-paste it for good start point
- */
-
-Y_UNIT_TEST_SUITE(TUnitTest) {
- Y_UNIT_TEST(TestEqual) {
- UNIT_ASSERT_EQUAL(0, 0);
- UNIT_ASSERT_EQUAL(1, 1);
- }
-}
diff --git a/library/cpp/yson/string-inl.h b/library/cpp/yson/string-inl.h
deleted file mode 100644
index 92e9ab4531..0000000000
--- a/library/cpp/yson/string-inl.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#pragma once
-
-#ifndef STRING_INL_H_
-#error "Direct inclusion of this file is not allowed, include string.h"
-// For the sake of sane code completion.
-#include "string.h"
-#endif
-
-#include <util/str_stl.h>
-
-namespace NYson {
-
-////////////////////////////////////////////////////////////////////////////////
-
-namespace NDetail {
-
-template <typename TLeft, typename TRight>
-bool Equals(const TLeft& lhs, const TRight& rhs)
-{
- auto lhsNull = !lhs.operator bool();
- auto rhsNull = !rhs.operator bool();
- if (lhsNull != rhsNull) {
- return false;
- }
- if (lhsNull && rhsNull) {
- return true;
- }
- return
- lhs.AsStringBuf() == rhs.AsStringBuf() &&
- lhs.GetType() == rhs.GetType();
-}
-
-} // namespace NDetail
-
-inline bool operator == (const TYsonStringBuf& lhs, const TYsonStringBuf& rhs)
-{
- return NDetail::Equals(lhs, rhs);
-}
-
-inline bool operator != (const TYsonStringBuf& lhs, const TYsonStringBuf& rhs)
-{
- return !(lhs == rhs);
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NYson
-
-//! A hasher for TYsonStringBuf
-template <>
-struct THash<NYson::TYsonStringBuf>
-{
- size_t operator () (const NYson::TYsonStringBuf& str) const
- {
- return THash<TStringBuf>()(str.AsStringBuf());
- }
-};