D-Bus server: remove some dead code

Some of the global constants were not used. Found by clang 3.4.
This commit is contained in:
Patrick Ohly 2014-07-22 15:36:45 +02:00
parent 7ca22d8db8
commit 7a04bde07d
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,6 @@ namespace {
GMainLoop *loop = NULL;
bool shutdownRequested = false;
const char * const execName = "syncevo-dbus-server";
const char * const debugEnv = "SYNCEVOLUTION_DEBUG";
void niam(int sig)
{

View File

@ -1096,12 +1096,12 @@ void Manager::setPeer(const boost::shared_ptr<GDBusCXX::Result0> &result,
}
static const char * const PEER_KEY_PROTOCOL = "protocol";
static const char * const PEER_SYNCML_PROTOCOL = "SyncML";
// static const char * const PEER_SYNCML_PROTOCOL = "SyncML";
static const char * const PEER_PBAP_PROTOCOL = "PBAP";
static const char * const PEER_FILES_PROTOCOL = "files";
static const char * const PEER_KEY_TRANSPORT = "transport";
static const char * const PEER_BLUETOOTH_TRANSPORT = "Bluetooth";
static const char * const PEER_IP_TRANSPORT = "IP";
// static const char * const PEER_IP_TRANSPORT = "IP";
static const char * const PEER_DEF_TRANSPORT = PEER_BLUETOOTH_TRANSPORT;
static const char * const PEER_KEY_ADDRESS = "address";
static const char * const PEER_KEY_DATABASE = "database";