diff --git a/faiss/IndexIVFFastScan.cpp b/faiss/IndexIVFFastScan.cpp index 19828753d2..3e40f7a3da 100644 --- a/faiss/IndexIVFFastScan.cpp +++ b/faiss/IndexIVFFastScan.cpp @@ -914,10 +914,6 @@ void IndexIVFFastScan::search_implem_10( size_t* nlist_out, const NormTableScaler* scaler, const IVFSearchParameters* params) const { - const size_t max_codes = params ? params->max_codes : this->max_codes; - const SearchParameters* quantizer_params = - params ? params->quantizer_params : nullptr; - size_t dim12 = ksub * M2; AlignedTable dis_tables; AlignedTable biases; diff --git a/tutorial/cpp/6-HNSW.cpp b/tutorial/cpp/6-HNSW.cpp index d7c615328b..1b3434a433 100644 --- a/tutorial/cpp/6-HNSW.cpp +++ b/tutorial/cpp/6-HNSW.cpp @@ -37,7 +37,6 @@ int main() { xq[d * i] += i / 1000.; } - int nlist = 100; int k = 4; faiss::IndexHNSWFlat index(d, 32);