refactor: remove QueryParams::set_type() (#518)
This commit is contained in:
@@ -34,10 +34,6 @@ class QueryParams {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void set_type(IndexType type) {
|
||||
type_ = type;
|
||||
}
|
||||
|
||||
float radius() const {
|
||||
return radius_;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user