aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.com>2023-06-19 16:26:39 +0300
committerivanmorozov <ivanmorozov@yandex-team.com>2023-06-19 16:26:39 +0300
commit53040660021b1c4a26ca6f91a37483bb044e1440 (patch)
treec8fa532b851adfe7bb0dae698311e6c7b3557511
parent60dc6b3c1246797f14f418c8d63bf82bb09f18f9 (diff)
downloadydb-53040660021b1c4a26ca6f91a37483bb044e1440.tar.gz
clean useless class
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.darwin-x86_64.txt1
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-aarch64.txt1
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-x86_64.txt1
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.windows-x86_64.txt1
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/behaviour.cpp3
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/behaviour.h2
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp15
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/initializer.h16
-rw-r--r--ydb/core/kqp/gateway/behaviour/tablestore/ya.make1
9 files changed, 2 insertions, 39 deletions
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.darwin-x86_64.txt b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.darwin-x86_64.txt
index d0b2504542..ac29a85b84 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.darwin-x86_64.txt
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.darwin-x86_64.txt
@@ -22,7 +22,6 @@ target_link_libraries(gateway-behaviour-tablestore PUBLIC
)
target_sources(gateway-behaviour-tablestore PRIVATE
${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/manager.cpp
- ${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp
)
add_global_library_for(gateway-behaviour-tablestore.global gateway-behaviour-tablestore)
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-aarch64.txt b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-aarch64.txt
index a9b44237fa..be28044e58 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-aarch64.txt
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-aarch64.txt
@@ -23,7 +23,6 @@ target_link_libraries(gateway-behaviour-tablestore PUBLIC
)
target_sources(gateway-behaviour-tablestore PRIVATE
${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/manager.cpp
- ${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp
)
add_global_library_for(gateway-behaviour-tablestore.global gateway-behaviour-tablestore)
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-x86_64.txt b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-x86_64.txt
index a9b44237fa..be28044e58 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-x86_64.txt
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.linux-x86_64.txt
@@ -23,7 +23,6 @@ target_link_libraries(gateway-behaviour-tablestore PUBLIC
)
target_sources(gateway-behaviour-tablestore PRIVATE
${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/manager.cpp
- ${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp
)
add_global_library_for(gateway-behaviour-tablestore.global gateway-behaviour-tablestore)
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.windows-x86_64.txt b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.windows-x86_64.txt
index d0b2504542..ac29a85b84 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.windows-x86_64.txt
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/CMakeLists.windows-x86_64.txt
@@ -22,7 +22,6 @@ target_link_libraries(gateway-behaviour-tablestore PUBLIC
)
target_sources(gateway-behaviour-tablestore PRIVATE
${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/manager.cpp
- ${CMAKE_SOURCE_DIR}/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp
)
add_global_library_for(gateway-behaviour-tablestore.global gateway-behaviour-tablestore)
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.cpp b/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.cpp
index f239b8652c..c985b05fbf 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.cpp
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.cpp
@@ -1,6 +1,5 @@
#include "behaviour.h"
#include "manager.h"
-#include "initializer.h"
namespace NKikimr::NKqp {
@@ -11,7 +10,7 @@ NMetadata::NModifications::IOperationsManager::TPtr TTableStoreBehaviour::Constr
}
NMetadata::NInitializer::IInitializationBehaviour::TPtr TTableStoreBehaviour::ConstructInitializer() const {
- return std::make_shared<TTableStoreInitializer>();
+ return nullptr;
}
TString TTableStoreBehaviour::GetInternalStorageTablePath() const {
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.h b/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.h
index a19c9871af..b00ce3bce5 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.h
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/behaviour.h
@@ -1,6 +1,6 @@
#pragma once
-
#include <ydb/services/metadata/abstract/kqp_common.h>
+#include <ydb/services/metadata/abstract/initialization.h>
namespace NKikimr::NKqp {
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp b/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp
deleted file mode 100644
index 83a1febebd..0000000000
--- a/ydb/core/kqp/gateway/behaviour/tablestore/initializer.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "initializer.h"
-#include "behaviour.h"
-
-namespace NKikimr::NKqp {
-
-TVector<NKikimr::NMetadata::NInitializer::ITableModifier::TPtr> TTableStoreInitializer::BuildModifiers() const {
- TVector<NMetadata::NInitializer::ITableModifier::TPtr> result;
- return result;
-}
-
-void TTableStoreInitializer::DoPrepare(NMetadata::NInitializer::IInitializerInput::TPtr controller) const {
- controller->OnPreparationFinished(BuildModifiers());
-}
-
-}
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/initializer.h b/ydb/core/kqp/gateway/behaviour/tablestore/initializer.h
deleted file mode 100644
index 9369159b2b..0000000000
--- a/ydb/core/kqp/gateway/behaviour/tablestore/initializer.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#pragma once
-
-#include <ydb/services/metadata/abstract/common.h>
-#include <ydb/services/metadata/initializer/common.h>
-#include <ydb/services/metadata/abstract/initialization.h>
-
-namespace NKikimr::NKqp {
-
-class TTableStoreInitializer: public NMetadata::NInitializer::IInitializationBehaviour {
-protected:
- TVector<NMetadata::NInitializer::ITableModifier::TPtr> BuildModifiers() const;
- virtual void DoPrepare(NMetadata::NInitializer::IInitializerInput::TPtr controller) const override;
-public:
-};
-
-}
diff --git a/ydb/core/kqp/gateway/behaviour/tablestore/ya.make b/ydb/core/kqp/gateway/behaviour/tablestore/ya.make
index 79ceb1a127..2b52c19cc9 100644
--- a/ydb/core/kqp/gateway/behaviour/tablestore/ya.make
+++ b/ydb/core/kqp/gateway/behaviour/tablestore/ya.make
@@ -2,7 +2,6 @@ LIBRARY()
SRCS(
manager.cpp
- initializer.cpp
GLOBAL behaviour.cpp
)