Commit c8d1ec32 authored by Steffen Vogel's avatar Steffen Vogel

replace __attribute__ ((unused)) with #ifdefs

parent af0c5d6f
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment