From 2ae092e266cb02759153e1e16d504bc3dc40fc1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Tue, 29 Aug 2023 22:49:43 -0400 Subject: [PATCH] storage: remove unused variable --- src/storage.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/storage.h b/src/storage.h index a839002e..dc5f2d94 100644 --- a/src/storage.h +++ b/src/storage.h @@ -281,7 +281,6 @@ std::pair>> Storage::expire(const InfoHash& id, time_point now) { // expire listeners - ssize_t del_listen {0}; for (auto nl_it = listeners.begin(); nl_it != listeners.end();) { auto& node_listeners = nl_it->second; for (auto l = node_listeners.cbegin(); l != node_listeners.cend();) { @@ -293,7 +292,6 @@ Storage::expire(const InfoHash& id, time_point now) } if (node_listeners.empty()) { nl_it = listeners.erase(nl_it); - del_listen--; } else ++nl_it;