refactor: remove QueryParams::set_type() (#518)

This commit is contained in:
egolearner 2026-07-02 17:05:26 +08:00 committed by GitHub
parent b9ce030593
commit 59e04ae4cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 7 deletions

View File

@ -34,10 +34,6 @@ class QueryParams {
return type_;
}
void set_type(IndexType type) {
type_ = type;
}
float radius() const {
return radius_;
}

View File

@ -22,9 +22,6 @@ TEST(QueryParamsTest, QueryParamsBaseClass) {
QueryParams params(IndexType::HNSW);
EXPECT_EQ(params.type(), IndexType::HNSW);
// Test setter
params.set_type(IndexType::IVF);
EXPECT_EQ(params.type(), IndexType::IVF);
}
TEST(QueryParamsTest, HnswQueryParams) {