refactor: remove QueryParams::set_type() (#518)
This commit is contained in:
parent
b9ce030593
commit
59e04ae4cc
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue