Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
std::streampos position is never used.
  • Loading branch information
lulyon authored Dec 21, 2023
1 parent 3f34296 commit 1dcd84b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hnswlib/hnswalg.h
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,6 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {

void saveIndex(const std::string &location) {
std::ofstream output(location, std::ios::binary);
std::streampos position;

writeBinaryPOD(output, offsetLevel0_);
writeBinaryPOD(output, max_elements_);
Expand Down

0 comments on commit 1dcd84b

Please sign in to comment.