replace __attribute__ ((unused)) with #ifdefs
This commit is contained in:
parent
af0c5d6f19
commit
c8d1ec32d0
3 changed files with 9 additions and 3 deletions
|
@ -1440,7 +1440,8 @@ struct Dis {
|
|||
std::string protocol;
|
||||
};
|
||||
|
||||
__attribute__ ((unused))
|
||||
// currently unused
|
||||
#if 0
|
||||
static gboolean disconnectMe(void *data) {
|
||||
Dis *d = (Dis *) data;
|
||||
PurpleAccount *account = purple_accounts_find_wrapped(d->name.c_str(), d->protocol.c_str());
|
||||
|
@ -1451,6 +1452,7 @@ static gboolean disconnectMe(void *data) {
|
|||
}
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean pingTimeout(void *data) {
|
||||
np->checkPing();
|
||||
|
|
|
@ -41,7 +41,8 @@ namespace Transport {
|
|||
|
||||
DEFINE_LOGGER(logger, "AdminInterface");
|
||||
|
||||
__attribute__ ((unused))
|
||||
// currently unused
|
||||
#if 0
|
||||
static std::string getArg(const std::string &body) {
|
||||
std::string ret;
|
||||
if (body.find(" ") == std::string::npos)
|
||||
|
@ -49,6 +50,7 @@ static std::string getArg(const std::string &body) {
|
|||
|
||||
return body.substr(body.find(" ") + 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
class StatusCommand : public AdminInterfaceCommand {
|
||||
public:
|
||||
|
|
|
@ -78,13 +78,15 @@ BOOL spectrum_control_handler( DWORD fdwCtrlType ) {
|
|||
}
|
||||
#endif
|
||||
|
||||
__attribute__ ((unused))
|
||||
// currently unused
|
||||
#if 0
|
||||
static void removeOldIcons(std::string iconDir) {
|
||||
std::vector<std::string> dirs;
|
||||
dirs.push_back(iconDir);
|
||||
|
||||
boost::thread thread(boost::bind(Util::removeEverythingOlderThan, dirs, time(NULL) - 3600*24*14));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
static void daemonize(const char *cwd, const char *lock_file) {
|
||||
|
|
Loading…
Add table
Reference in a new issue