Skip to content

Commit a30fd74

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused function from faiss/clone_index.cpp
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
1 parent fc4dbd5 commit a30fd74

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

faiss/clone_index.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,6 @@ Index* clone_AdditiveQuantizerIndex(const Index* index) {
238238

239239
namespace {
240240

241-
IndexHNSW* clone_HNSW(const IndexHNSW* ihnsw) {
242-
TRYCLONE(IndexHNSWFlat, ihnsw)
243-
TRYCLONE(IndexHNSWPQ, ihnsw)
244-
TRYCLONE(IndexHNSWSQ, ihnsw)
245-
return new IndexHNSW(*ihnsw);
246-
}
247-
248241
InvertedLists* clone_InvertedLists(const InvertedLists* invlists) {
249242
if (auto* ails = dynamic_cast<const ArrayInvertedLists*>(invlists)) {
250243
return new ArrayInvertedLists(*ails);

0 commit comments

Comments
 (0)