summaryrefslogtreecommitdiff
path: root/plugins/Variables
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-10-15 08:55:04 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-10-15 08:55:04 +0000
commit7e54472de6322d6929874dc8acb66229590d250f (patch)
tree438e0c92905c665eb49c3113d7632c08a56cad0d /plugins/Variables
parentc55f19e3a01f4799c0246521c519755db4857f9b (diff)
not used header removed
code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6496 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables')
-rw-r--r--plugins/Variables/src/parse_miranda.cpp18
-rw-r--r--plugins/Variables/src/parse_miranda.h1
2 files changed, 3 insertions, 16 deletions
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,13 +370,9 @@ 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;
TCHAR *szStatus = (TCHAR*)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)status, GSMDF_TCHAR);
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"