Skip to content

Commit

Permalink
Remove unused function from faiss/impl/ProductQuantizer.cpp
Browse files Browse the repository at this point in the history
Summary: `-Wunused-function` has identified an unused function. This diff removes it. In many cases these functions have existed for years in an unused state.

Reviewed By: bunnypak

Differential Revision: D52355753

fbshipit-source-id: 54c8b47224c1dafc4e2464fe4e528c78ecabf0b8
  • Loading branch information
r-barnes authored and facebook-github-bot committed Dec 21, 2023
1 parent 9a8b34e commit 5621487
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions faiss/impl/ProductQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,6 @@ void ProductQuantizer::search_ip(
init_finalize_heap);
}

static float sqr(float x) {
return x * x;
}

void ProductQuantizer::compute_sdc_table() {
sdc_table.resize(M * ksub * ksub);

Expand Down

0 comments on commit 5621487

Please sign in to comment.