From a3e4d29af614c3f0f80735919529c27ed92154e4 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Wed, 22 Apr 2020 20:15:09 +0800 Subject: [PATCH] Remove unused function (#2029) * [skip ci] Remove unused function Signed-off-by: shanghaikid Signed-off-by: ruiyi.jiang * remove unused function in utils.cpp Signed-off-by: ruiyi.jiang --- core/src/db/Utils.cpp | 6 ------ core/src/db/Utils.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/core/src/db/Utils.cpp b/core/src/db/Utils.cpp index b7930522..a862c03e 100644 --- a/core/src/db/Utils.cpp +++ b/core/src/db/Utils.cpp @@ -221,12 +221,6 @@ IsRawIndexType(int32_t type) { return (type == (int32_t)EngineType::FAISS_IDMAP) || (type == (int32_t)EngineType::FAISS_BIN_IDMAP); } -bool -IsBinaryIndexType(int32_t index_type) { - return (index_type == (int32_t)engine::EngineType::FAISS_BIN_IDMAP) || - (index_type == (int32_t)engine::EngineType::FAISS_BIN_IVFFLAT); -} - bool IsBinaryMetricType(int32_t metric_type) { return (metric_type == (int32_t)engine::MetricType::HAMMING) || diff --git a/core/src/db/Utils.h b/core/src/db/Utils.h index b5716729..589ef060 100644 --- a/core/src/db/Utils.h +++ b/core/src/db/Utils.h @@ -48,9 +48,6 @@ IsSameIndex(const CollectionIndex& index1, const CollectionIndex& index2); bool IsRawIndexType(int32_t type); -static bool -IsBinaryIndexType(int32_t index_type); - bool IsBinaryMetricType(int32_t metric_type); -- GitLab