From d2362a55b17492d4302c052f1066ab4bffc5a558 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 18 Apr 2023 02:28:46 +0200 Subject: [PATCH] lmdb-safe: remove leftover debug variable In file included from ../../ext/lmdb-safe/lmdb-typed.cc:1: ../../ext/lmdb-safe/lmdb-typed.hh:656:11: warning: variable 'scanned' set but not used [-Wunused-but-set-variable] int scanned = 0; ^ --- ext/lmdb-safe/lmdb-typed.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/lmdb-safe/lmdb-typed.hh b/ext/lmdb-safe/lmdb-typed.hh index bfaffa76ef..a0e2cefb0d 100644 --- a/ext/lmdb-safe/lmdb-typed.hh +++ b/ext/lmdb-safe/lmdb-typed.hh @@ -653,9 +653,7 @@ public: int rc = cursor.get(out, id, MDB_SET_RANGE); - int scanned = 0; while (rc == 0) { - scanned++; auto sout = out.getNoStripHeader(); // FIXME: this (and many others) could probably be string_view auto thiskey = getKeyFromCombinedKey(out); auto sthiskey = thiskey.getNoStripHeader(); @@ -673,7 +671,6 @@ public: rc = cursor.get(out, id, MDB_NEXT); } - // std::cerr<<"get_multi scanned="<