From 9f2c95fe7775fa77928ec1a7abd04bc8f64b60aa Mon Sep 17 00:00:00 2001 From: HanzZ Date: Tue, 18 Oct 2011 22:42:36 +0200 Subject: [PATCH] Remove std::couts --- backends/libpurple/main.cpp | 3 --- src/buddy.cpp | 1 - src/mysqlbackend.cpp | 4 ++-- src/user.cpp | 1 - 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/backends/libpurple/main.cpp b/backends/libpurple/main.cpp index 916294b1..86ef7dcf 100644 --- a/backends/libpurple/main.cpp +++ b/backends/libpurple/main.cpp @@ -735,7 +735,6 @@ class SpectrumNetworkPlugin : public NetworkPlugin { } m_vcards[user + name] = id; - std::cout << name << " " << purple_account_get_username(account) << "\n"; if (KEYFILE_BOOL("backend", "no_vcard_fetch") && name != purple_account_get_username(account)) { PurpleNotifyUserInfo *user_info = purple_notify_user_info_new(); notify_user_info(purple_account_get_connection(account), name.c_str(), user_info); @@ -1071,7 +1070,6 @@ static void buddyListUpdate(PurpleBuddyList *list, PurpleBlistNode *node) { } static void buddyPrivacyChanged(PurpleBlistNode *node, void *data) { - std::cout << "PRIVACY CHANGED\n"; if (!PURPLE_BLIST_NODE_IS_BUDDY(node)) return; buddyListUpdate(NULL, node); @@ -1260,7 +1258,6 @@ static void *notify_user_info(PurpleConnection *gc, const char *who, PurpleNotif } bool ownInfo = name == purple_account_get_username(account); - std::cout << "RECEIVED " << name << " " << purple_account_get_username(account) << "\n"; if (ownInfo) { const gchar *displayname = purple_connection_get_display_name(gc); diff --git a/src/buddy.cpp b/src/buddy.cpp index 2cbe4a2c..6c023539 100644 --- a/src/buddy.cpp +++ b/src/buddy.cpp @@ -130,7 +130,6 @@ std::string Buddy::getSafeName() { // Transport::instance()->protocol()->prepareUsername(name, purple_buddy_get_account(m_buddy)); if (getFlags() & BUDDY_JID_ESCAPING) { name = Swift::JID::getEscapedNode(name); - std::cout << "OUT '" << getName() << "' '" << name << "'\n"; } else { if (name.find_last_of("@") != std::string::npos) { diff --git a/src/mysqlbackend.cpp b/src/mysqlbackend.cpp index 630e8f3e..aaaae047 100644 --- a/src/mysqlbackend.cpp +++ b/src/mysqlbackend.cpp @@ -468,7 +468,7 @@ bool MySQLBackend::getBuddies(long id, std::list &roster) { BOOST_FOREACH(BuddyInfo &b, roster) { if (buddy_id == b.id) { - std::cout << "Adding buddy info setting " << key << "\n"; +// std::cout << "Adding buddy info setting " << key << "\n"; b.settings[key] = var; buddy_id = -1; } @@ -492,7 +492,7 @@ bool MySQLBackend::getBuddies(long id, std::list &roster) { break; } if (buddy_id == b.id) { - std::cout << "Adding buddy info setting " << key << "=" << val << "\n"; +// std::cout << "Adding buddy info setting " << key << "=" << val << "\n"; b.settings[key] = var; buddy_id = -1; } diff --git a/src/user.cpp b/src/user.cpp index 3af346b8..bd4c2726 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -164,7 +164,6 @@ void User::setConnected(bool connected) { } void User::handlePresence(Swift::Presence::ref presence) { - std::cout << "PRESENCE " << presence->getFrom().toString() << "\n"; if (!m_connected) { // we are not connected to legacy network, so we should do it when disco#info arrive :) if (m_readyForConnect == false) {