From f14a0bd7787a02809b18eabc26ea4dc5aac948de Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 14 Aug 2024 01:17:22 +0200 Subject: [PATCH] Remove unused variables. --- searchcore/src/tests/proton/common/selectpruner_test.cpp | 1 - .../searchlib/memoryindex/ordered_field_index_inserter.cpp | 2 -- .../vespa/storage/distributor/top_level_bucket_db_updater.cpp | 1 - 3 files changed, 4 deletions(-) diff --git a/searchcore/src/tests/proton/common/selectpruner_test.cpp b/searchcore/src/tests/proton/common/selectpruner_test.cpp index 09854af99e17..9ae692c8a91f 100644 --- a/searchcore/src/tests/proton/common/selectpruner_test.cpp +++ b/searchcore/src/tests/proton/common/selectpruner_test.cpp @@ -48,7 +48,6 @@ const string header_name_2 = type_name_2 + ".header"; const string body_name_2 = type_name_2 + ".body"; const string false_name("false"); const string true_name("true"); -const string not_name("not"); const string valid_name("test.aa > 3999"); const string valid2_name("test.ab > 4999"); const string rvalid_name("test.aa <= 3999"); diff --git a/searchlib/src/vespa/searchlib/memoryindex/ordered_field_index_inserter.cpp b/searchlib/src/vespa/searchlib/memoryindex/ordered_field_index_inserter.cpp index 778e9cfbc533..ae33e86f3d4a 100644 --- a/searchlib/src/vespa/searchlib/memoryindex/ordered_field_index_inserter.cpp +++ b/searchlib/src/vespa/searchlib/memoryindex/ordered_field_index_inserter.cpp @@ -24,8 +24,6 @@ namespace search::memoryindex { namespace { -const vespalib::string emptyWord = ""; - uint16_t cap_u16(uint32_t val) { return std::min(val, static_cast(std::numeric_limits::max())); } } diff --git a/storage/src/vespa/storage/distributor/top_level_bucket_db_updater.cpp b/storage/src/vespa/storage/distributor/top_level_bucket_db_updater.cpp index 84d54307e6e4..761514b580fa 100644 --- a/storage/src/vespa/storage/distributor/top_level_bucket_db_updater.cpp +++ b/storage/src/vespa/storage/distributor/top_level_bucket_db_updater.cpp @@ -483,7 +483,6 @@ TopLevelBucketDBUpdater::getReportContentType(const framework::HttpUrlPath&) con namespace { -const vespalib::string ALL = "all"; const vespalib::string BUCKETDB = "bucketdb"; const vespalib::string BUCKETDB_UPDATER = "Bucket Database Updater";