From 1dcd84ba76e6c886dca5c88c9cf6829946262afc Mon Sep 17 00:00:00 2001 From: Lu Liang Date: Thu, 21 Dec 2023 15:10:08 +0800 Subject: [PATCH] remove unused variable std::streampos position is never used. --- hnswlib/hnswalg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/hnswlib/hnswalg.h b/hnswlib/hnswalg.h index e269ae69..f516df59 100644 --- a/hnswlib/hnswalg.h +++ b/hnswlib/hnswalg.h @@ -684,7 +684,6 @@ class HierarchicalNSW : public AlgorithmInterface { void saveIndex(const std::string &location) { std::ofstream output(location, std::ios::binary); - std::streampos position; writeBinaryPOD(output, offsetLevel0_); writeBinaryPOD(output, max_elements_);