Fix CppCheck in p3linkmgr.cc

/libretroshare/src/pqi/p3linkmgr.cc:329: warning:
Cppcheck(unusedVariable): Unused variable: it2
This commit is contained in:
Phenom 2017-07-26 10:30:33 +02:00 committed by csoler
parent 73e1ddc557
commit b77d027454

View file

@ -326,7 +326,6 @@ void p3LinkMgrIMPL::statusTick()
std::cerr << "p3LinkMgrIMPL::statusTick()" << std::endl; std::cerr << "p3LinkMgrIMPL::statusTick()" << std::endl;
#endif #endif
std::list<RsPeerId> retryIds; std::list<RsPeerId> retryIds;
std::list<RsPeerId>::iterator it2;
//std::list<std::string> dummyToRemove; //std::list<std::string> dummyToRemove;
{ {
@ -362,8 +361,8 @@ void p3LinkMgrIMPL::statusTick()
} }
#ifndef P3CONNMGR_NO_AUTO_CONNECTION #ifndef P3CONNMGR_NO_AUTO_CONNECTION
std::list<RsPeerId>::iterator it2;
for(it2 = retryIds.begin(); it2 != retryIds.end(); ++it2) for(it2 = retryIds.begin(); it2 != retryIds.end(); ++it2)
{ {
#ifdef LINKMGR_DEBUG_TICK #ifdef LINKMGR_DEBUG_TICK
std::cerr << "p3LinkMgrIMPL::statusTick() RETRY TIMEOUT for: "; std::cerr << "p3LinkMgrIMPL::statusTick() RETRY TIMEOUT for: ";