summaryrefslogtreecommitdiff
path: root/plugins/CyrTranslit
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-11 13:58:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-11 13:58:12 +0000
commit4b3825f1dd0bd4a64ad11176d967fff739b3530c (patch)
treedffc71b417948eab620a94394d2cae8ef83e2734 /plugins/CyrTranslit
parentb6039a923e724b03d9d7a1ef6b74bdb397e2b7b0 (diff)
useless code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@1872 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CyrTranslit')
-rw-r--r--plugins/CyrTranslit/src/MirandaContact.cpp17
-rw-r--r--plugins/CyrTranslit/src/MirandaContact.h10
2 files changed, 4 insertions, 23 deletions
diff --git a/plugins/CyrTranslit/src/MirandaContact.cpp b/plugins/CyrTranslit/src/MirandaContact.cpp
index 931ed6e2c6..166ec8cfa7 100644
--- a/plugins/CyrTranslit/src/MirandaContact.cpp
+++ b/plugins/CyrTranslit/src/MirandaContact.cpp
@@ -59,7 +59,6 @@ void MirandaContact::initialize()
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, onPreBuildContactMenu);
TransliterationProtocol::initialize();
- activateTransliterationProtocolForSubscribedContacts();
}
//------------------------------------------------------------------------------
@@ -109,22 +108,6 @@ void MirandaContact::generateMenuItemsForAllContacts()
//------------------------------------------------------------------------------
-void MirandaContact::activateTransliterationProtocolForSubscribedContacts()
-{
- HANDLE hContact = db_find_first();
- if (!hContact)
- return;
-
- do {
- MirandaContact mc = getContact(reinterpret_cast<HANDLE>(hContact));
- if (mc.shouldTransliterateOutgoingMessages())
- mc.save();
- }
- while(hContact = db_find_next(hContact));
-}
-
-//------------------------------------------------------------------------------
-
INT_PTR MirandaContact::onMenuCommandTransliterate(WPARAM wParam, LPARAM lParam)
{
HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
diff --git a/plugins/CyrTranslit/src/MirandaContact.h b/plugins/CyrTranslit/src/MirandaContact.h
index 1fdda0156e..ab7de88407 100644
--- a/plugins/CyrTranslit/src/MirandaContact.h
+++ b/plugins/CyrTranslit/src/MirandaContact.h
@@ -1,17 +1,17 @@
/**
* CyrTranslit: the Cyrillic transliteration plug-in for Miranda IM.
- * Copyright 2005 Ivan Krechetov.
- *
+ * Copyright 2005 Ivan Krechetov.
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -72,8 +72,6 @@ private:
*/
static void generateMenuItemsForAllContacts();
- static void activateTransliterationProtocolForSubscribedContacts();
-
/**
* This is a callback function for the transliteration command menu item.
* This menu item is contact-specific.