mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-29 16:53:31 -05:00
removed dead code
This commit is contained in:
parent
6b74a8a1b6
commit
e28e9720dd
@ -112,6 +112,7 @@ int setDebugCrashMode(const char *cfile)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef deadcode // this code is not used by RS
|
||||||
/* this is called when we exit normally */
|
/* this is called when we exit normally */
|
||||||
int clearDebugCrashLog()
|
int clearDebugCrashLog()
|
||||||
{
|
{
|
||||||
@ -135,7 +136,7 @@ int clearDebugCrashLog()
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int setDebugFile(const char *fname)
|
int setDebugFile(const char *fname)
|
||||||
@ -168,13 +169,14 @@ int setOutputLevel(int lvl)
|
|||||||
return defaultLevel = lvl;
|
return defaultLevel = lvl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef deadcode // this code is not used by RS
|
||||||
int setZoneLevel(int lvl, int zone)
|
int setZoneLevel(int lvl, int zone)
|
||||||
{
|
{
|
||||||
RsStackMutex stack(logMtx); /******** LOCKED ****************/
|
RsStackMutex stack(logMtx); /******** LOCKED ****************/
|
||||||
zoneLevel[zone] = lvl;
|
zoneLevel[zone] = lvl;
|
||||||
return zone;
|
return zone;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int getZoneLevel(int zone)
|
int getZoneLevel(int zone)
|
||||||
{
|
{
|
||||||
@ -182,14 +184,17 @@ int getZoneLevel(int zone)
|
|||||||
return locked_getZoneLevel(zone);
|
return locked_getZoneLevel(zone);
|
||||||
}
|
}
|
||||||
|
|
||||||
int locked_getZoneLevel(int zone)
|
int locked_getZoneLevel(int /*zone*/)
|
||||||
{
|
{
|
||||||
|
#ifdef deadcode // this code is not used by RS
|
||||||
std::map<int, int>::iterator it = zoneLevel.find(zone);
|
std::map<int, int>::iterator it = zoneLevel.find(zone);
|
||||||
if (it == zoneLevel.end())
|
if (it == zoneLevel.end())
|
||||||
{
|
{
|
||||||
return defaultLevel;
|
return defaultLevel;
|
||||||
}
|
}
|
||||||
return it -> second;
|
return it -> second;
|
||||||
|
#endif
|
||||||
|
return defaultLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rslog(unsigned int lvl, int zone, const std::string &msg)
|
int rslog(unsigned int lvl, int zone, const std::string &msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user