Skip to content

Commit

Permalink
Remove unused function from faiss/clone_index.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: palmje

Differential Revision: D53049728

fbshipit-source-id: b3d6b98e4ef035f257e9120369b0e70b3200bec0
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jan 24, 2024
1 parent fc4dbd5 commit a30fd74
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions faiss/clone_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,6 @@ Index* clone_AdditiveQuantizerIndex(const Index* index) {

namespace {

IndexHNSW* clone_HNSW(const IndexHNSW* ihnsw) {
TRYCLONE(IndexHNSWFlat, ihnsw)
TRYCLONE(IndexHNSWPQ, ihnsw)
TRYCLONE(IndexHNSWSQ, ihnsw)
return new IndexHNSW(*ihnsw);
}

InvertedLists* clone_InvertedLists(const InvertedLists* invlists) {
if (auto* ails = dynamic_cast<const ArrayInvertedLists*>(invlists)) {
return new ArrayInvertedLists(*ails);
Expand Down

0 comments on commit a30fd74

Please sign in to comment.