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
 
@@ -1437,23 +1437,25 @@ static PurpleConversationUiOps conversation_ui_ops =
 

	
 
struct Dis {
 
	std::string name;
 
	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());
 
	delete d;
 

	
 
	if (account) {
 
		np->handleLogoutRequest(np->m_accounts[account], purple_account_get_username_wrapped(account));
 
	}
 
	return FALSE;
 
}
 
#endif
 

	
 
static gboolean pingTimeout(void *data) {
 
	np->checkPing();
 
	return TRUE;
 
}
 

	
libtransport/AdminInterface.cpp
Show inline comments
 
@@ -38,20 +38,22 @@
 
#define HAVE_SWIFTEN_3  (SWIFTEN_VERSION >= 0x030000)
 

	
 
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)
 
		return ret;
 

	
 
	return body.substr(body.find(" ") + 1);
 
}
 
#endif
 

	
 
class StatusCommand : public AdminInterfaceCommand {
 
	public:
 

	
 
		StatusCommand(NetworkPluginServer *server, UserManager *userManager) :
 
												AdminInterfaceCommand("status",
spectrum/src/main.cpp
Show inline comments
 
@@ -75,19 +75,21 @@ BOOL spectrum_control_handler( DWORD fdwCtrlType ) {
 
		return TRUE;
 
	}
 
	return FALSE;
 
}
 
#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) {
 
	pid_t pid, sid;
 
	FILE* lock_file_f;
 
	char process_pid[20];
0 comments (0 inline, 0 general)