storage: remove unused variable

This commit is contained in:
Adrien Béraud committed 2023-08-30 17:58:45 -04:00
1 parent 27ce8b00ed
commit 2ae092e266
1 file changed
-2
-2
View File
@@ -281,7 +281,6 @@ std::pair<ssize_t, std::vector<Sp<Value>>>
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;