From 37cf0ffaba7f4e855a909f57adf72da43c0ac275 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Jan 2023 09:20:45 +0100 Subject: Remove unneeded iteration This should have been done in a4308c9. --- win/rfb_win32/SocketManager.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'win') diff --git a/win/rfb_win32/SocketManager.cxx b/win/rfb_win32/SocketManager.cxx index b7cc1cce..027536fd 100644 --- a/win/rfb_win32/SocketManager.cxx +++ b/win/rfb_win32/SocketManager.cxx @@ -165,9 +165,7 @@ void SocketManager::setDisable(network::SocketServer* srvr, bool disable) int SocketManager::checkTimeouts() { int timeout = EventManager::checkTimeouts(); - std::map::iterator i; - for (i=listeners.begin(); i!=listeners.end(); i++) - soonestTimeout(&timeout, Timer::checkTimeouts()); + soonestTimeout(&timeout, Timer::checkTimeouts()); std::list shutdownSocks; std::map::iterator j, j_next; -- cgit v1.2.3