From 2f345a6bf8385bf0874b976d0da9790faa4ee0ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 18:33:37 +0300 Subject: Move chat command /cacheinfo into actions. --- src/commands.cpp | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index f70564822..859eff8e4 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -358,45 +358,6 @@ impHandler(addIgnoreAttack) return true; } -impHandler0(cacheInfo) -{ - if (!chatWindow || !debugChatTab) - return false; - -/* - Font *const font = chatWindow->getFont(); - if (!font) - return; - - const TextChunkList *const cache = font->getCache(); - if (!cache) - return; - - unsigned int all = 0; - debugChatTab->chatLog(_("font cache size")); - std::string str; - for (int f = 0; f < 256; f ++) - { - if (!cache[f].size) - { - const unsigned int sz = static_cast(cache[f].size); - all += sz; - str.append(strprintf("%d: %u, ", f, sz)); - } - } - debugChatTab->chatLog(str); - debugChatTab->chatLog(strprintf("%s %d", _("Cache size:"), all)); -#ifdef DEBUG_FONT_COUNTERS - debugChatTab->chatLog(""); - debugChatTab->chatLog(strprintf("%s %d", - _("Created:"), font->getCreateCounter())); - debugChatTab->chatLog(strprintf("%s %d", - _("Deleted:"), font->getDeleteCounter())); -#endif -*/ - return true; -} - impHandler0(serverIgnoreAll) { Net::getChatHandler()->ignoreAll(); -- cgit v1.2.3-70-g09d2