refactor: remove debug

pull/62/head
Alexis 2018-10-25 13:49:30 +02:00
parent 68d9d2c347
commit 85f845ca43
2 changed files with 1 additions and 5 deletions

View File

@ -32,7 +32,7 @@ void Host::nameAppeared(GDBusConnection* connection,
{
auto host = static_cast<SNI::Host *>(data);
if (host->cancellable_ != nullptr) {
std::cout << "WTF" << std::endl;
// TODO
}
host->cancellable_ = g_cancellable_new();
sn_org_kde_status_notifier_watcher_proxy_new(
@ -110,7 +110,6 @@ void Host::registerHost(GObject* src, GAsyncResult* res,
void Host::itemRegistered(
SnOrgKdeStatusNotifierWatcher* watcher, const gchar* service, gpointer data)
{
std::cout << "Item registered" << std::endl;
auto host = static_cast<SNI::Host *>(data);
host->addRegisteredItem(service);
}
@ -123,7 +122,6 @@ void Host::itemUnregistered(
for (auto it = host->items.begin(); it != host->items.end(); ++it) {
if (it->bus_name == bus_name && it->object_path == object_path) {
host->items.erase(it);
std::cout << "Item Unregistered" << std::endl;
break;
}
}

View File

@ -40,7 +40,6 @@ void Watcher::busAcquired(GDBusConnection* connection, const gchar* name,
sn_org_kde_status_notifier_watcher_set_protocol_version(host->watcher_, 0);
sn_org_kde_status_notifier_watcher_set_is_status_notifier_host_registered(
host->watcher_, TRUE);
std::cout << "Bus aquired" << std::endl;
}
gboolean Watcher::handleRegisterHost(Watcher* obj,
@ -75,7 +74,6 @@ gboolean Watcher::handleRegisterHost(Watcher* obj,
}
sn_org_kde_status_notifier_watcher_complete_register_status_notifier_host(
obj->watcher_, invocation);
std::cout << "Host registered: " << bus_name << std::endl;
return TRUE;
}