From aa2db8ac20aad75d5c83b92142834a30b5890cb4 Mon Sep 17 00:00:00 2001 From: Arseniy Lartsev Date: Sat, 9 May 2020 15:22:49 +0200 Subject: [PATCH] Removed some obsolete comments and log messages --- chat-info.cpp | 3 --- td-client.cpp | 5 ----- 2 files changed, 8 deletions(-) diff --git a/chat-info.cpp b/chat-info.cpp index 4f567c1..9e3f09a 100644 --- a/chat-info.cpp +++ b/chat-info.cpp @@ -24,8 +24,6 @@ GList *getChatJoinInfo() pce->required = FALSE; info = g_list_append (info, pce); - purple_debug_misc(config::pluginId, "getChatJoinInfo: first field = %s\n", - ((proto_chat_entry *)info->data)->identifier); return info; } @@ -39,7 +37,6 @@ GHashTable *getChatComponents(const td::td_api::chat &chat) char name[32]; snprintf(name, sizeof(name)-1, "%lld", (long long)chat.id_); name[sizeof(name)-1] = '\0'; - purple_debug_misc(config::pluginId, "Creating chat %s='%s'\n", idKey, name); GHashTable *table = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_free); g_hash_table_insert(table, idKey, g_strdup(name)); diff --git a/td-client.cpp b/td-client.cpp index 673f070..9d632b4 100644 --- a/td-client.cpp +++ b/td-client.cpp @@ -69,9 +69,6 @@ public: m_owner->updateSupergroup(std::move(groupUpdate.supergroup_)); } - // TODO updateBasicGroup - // TODO updateSupergroup - void operator()(auto &update) const { purple_debug_misc(config::pluginId, "Incoming update: ignorig ID=%d\n", update.get_id()); } @@ -426,7 +423,6 @@ void PurpleTdClient::updateBasicGroupChat(int32_t groupId) group->id_); else { std::string chatName = getChatName(*chat); - purple_debug_misc(config::pluginId, "Looking for purple chat '%s'\n", chatName.c_str()); PurpleChat *purpleChat = purple_blist_find_chat(m_account, chatName.c_str()); if (!purpleChat) { purple_debug_misc(config::pluginId, "Adding new chat for basic group %d (%s)\n", @@ -451,7 +447,6 @@ void PurpleTdClient::updateSupergroupChat(int32_t groupId) group->id_); else { std::string chatName = getChatName(*chat); - purple_debug_misc(config::pluginId, "Looking for purple chat '%s'\n", chatName.c_str()); PurpleChat *purpleChat = purple_blist_find_chat(m_account, chatName.c_str()); if (!purpleChat) { purple_debug_misc(config::pluginId, "Adding new chat for supergroup %d (%s)\n",