Changeset - c8d1ec32d0fa
[Not reviewed]
0 3 0
Steffen Vogel - 8 years ago 2017-10-30 16:51:43
post@steffenvogel.de
replace __attribute__ ((unused)) with #ifdefs
3 files changed with 9 insertions and 3 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -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();
libtransport/AdminInterface.cpp
Show inline comments
 
@@ -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:
spectrum/src/main.cpp
Show inline comments
 
@@ -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) {
0 comments (0 inline, 0 general)