From 7e54472de6322d6929874dc8acb66229590d250f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 15 Oct 2013 08:55:04 +0000 Subject: not used header removed code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6496 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_miranda.cpp | 18 +++--------------- plugins/Variables/src/parse_miranda.h | 1 - 2 files changed, 3 insertions(+), 16 deletions(-) (limited to 'plugins/Variables/src') diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp index dd1cc7a662..4b71d307d8 100644 --- a/plugins/Variables/src/parse_miranda.cpp +++ b/plugins/Variables/src/parse_miranda.cpp @@ -270,11 +270,7 @@ static TCHAR* parseLastSeenDate(ARGUMENTSINFO *ai) szFormat = ai->targv[2]; SYSTEMTIME lsTime = { 0 }; - char *szModule = CEX_MODULE; - lsTime.wYear = db_get_w(hContact, szModule, "Year", 0); - if (lsTime.wYear == 0) - szModule = SEEN_MODULE; - + char *szModule = SEEN_MODULE; lsTime.wYear = db_get_w(hContact, szModule, "Year", 0); if (lsTime.wYear == 0) return NULL; @@ -328,11 +324,7 @@ static TCHAR* parseLastSeenTime(ARGUMENTSINFO *ai) szFormat = ai->targv[2]; SYSTEMTIME lsTime = { 0 }; - char *szModule = CEX_MODULE; - lsTime.wYear = db_get_w(hContact, szModule, "Year", 0); - if (lsTime.wYear == 0) - szModule = SEEN_MODULE; - + char *szModule = SEEN_MODULE; lsTime.wYear = db_get_w(hContact, szModule, "Year", 0); if (lsTime.wYear == 0) return NULL; @@ -378,12 +370,8 @@ static TCHAR* parseLastSeenStatus(ARGUMENTSINFO *ai) mir_free(ci.hContacts); return NULL; } - char *szModule = CEX_MODULE; + char *szModule = SEEN_MODULE; int status = db_get_w(hContact, szModule, "Status", 0); - if (status == 0) - szModule = SEEN_MODULE; - - status = db_get_w(hContact, szModule, "Status", 0); if (status == 0) return NULL; diff --git a/plugins/Variables/src/parse_miranda.h b/plugins/Variables/src/parse_miranda.h index 0dd207f6c5..16b7e68f41 100644 --- a/plugins/Variables/src/parse_miranda.h +++ b/plugins/Variables/src/parse_miranda.h @@ -43,7 +43,6 @@ #define STR_PIUIDTEXT "uidtext" #define STR_PIUIDSETTING "uidsetting" -#define CEX_MODULE "ContactsEx" #define SEEN_MODULE "SeenModule" #define STR_PROTOID "protoid" -- cgit v1.2.3