From 4b3825f1dd0bd4a64ad11176d967fff739b3530c Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Thu, 11 Oct 2012 13:58:12 +0000
Subject: useless code removed

git-svn-id: http://svn.miranda-ng.org/main/trunk@1872 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/CyrTranslit/src/MirandaContact.cpp | 17 -----------------
 plugins/CyrTranslit/src/MirandaContact.h   | 10 ++++------
 2 files changed, 4 insertions(+), 23 deletions(-)

(limited to 'plugins/CyrTranslit/src')

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.
-- 
cgit v1.2.3