summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/Flags
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-18 07:50:51 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-18 07:50:51 +0000
commitd90a9d04b3b6e2beaa31b311fd38b886a46bab72 (patch)
tree60678f09fa8feffbb25233c93636193834785ab0 /plugins/UserInfoEx/src/Flags
parent4774f691493bfaf06d36c18e902a02bf7c9b31f8 (diff)
own country list removed at all
git-svn-id: http://svn.miranda-ng.org/main/trunk@4084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/Flags')
-rw-r--r--plugins/UserInfoEx/src/Flags/svc_countrylistext.cpp56
-rw-r--r--plugins/UserInfoEx/src/Flags/svc_countrylistext.h31
-rw-r--r--plugins/UserInfoEx/src/Flags/svc_flags.cpp1
3 files changed, 0 insertions, 88 deletions
diff --git a/plugins/UserInfoEx/src/Flags/svc_countrylistext.cpp b/plugins/UserInfoEx/src/Flags/svc_countrylistext.cpp
deleted file mode 100644
index 9f0819419a..0000000000
--- a/plugins/UserInfoEx/src/Flags/svc_countrylistext.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-UserinfoEx plugin for Miranda IM
-
-Copyright:
-© 2006-2010 DeathAxe, Yasnovidyashii, Merlin, K. Romanov, Kreol
-
-part of this code based on:
-Miranda IM Country Flags Plugin Copyright ©2006-2007 H. Herkenrath
-
-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.
-*/
-
-#include "..\commonheaders.h"
-
-/************************* Services *******************************/
-
-INT_PTR ServiceGetCountryByNumber(WPARAM wParam,LPARAM lParam)
-{
- int i;
- UNREFERENCED_PARAMETER(lParam);
- for(i=0; i<SIZEOF(countries); ++i)
- if ((int)wParam==countries[i].id)
- return (INT_PTR)countries[i].szName;
- return NULL;
-}
-
-INT_PTR ServiceGetCountryList(WPARAM wParam,LPARAM lParam)
-{
- if ((int*)wParam==NULL || (void*)lParam==NULL) return 1;
- *(int*)wParam=SIZEOF(countries);
- *(struct CountryListEntry**)lParam=countries;
- return 0;
-}
-
-/************************* Misc ***********************************/
-
-VOID InitCountryListExt()
-{
- /* hack to replace built-in country list */
- if (!myDestroyServiceFunction(MS_UTILS_GETCOUNTRYLIST))
- CreateServiceFunction(MS_UTILS_GETCOUNTRYLIST,ServiceGetCountryList);
- if (!myDestroyServiceFunction(MS_UTILS_GETCOUNTRYBYNUMBER))
- CreateServiceFunction(MS_UTILS_GETCOUNTRYBYNUMBER,ServiceGetCountryByNumber);
-}
diff --git a/plugins/UserInfoEx/src/Flags/svc_countrylistext.h b/plugins/UserInfoEx/src/Flags/svc_countrylistext.h
deleted file mode 100644
index 5a93b836f9..0000000000
--- a/plugins/UserInfoEx/src/Flags/svc_countrylistext.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-UserinfoEx plugin for Miranda IM
-
-Copyright:
-© 2006-2010 DeathAxe, Yasnovidyashii, Merlin, K. Romanov, Kreol
-
-part of this code based on:
-Miranda IM Country Flags Plugin Copyright ©2006-2007 H. Herkenrath
-
-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.
-*/
-
-#ifndef _UINFOEX_COUNTRYLIST_H_INCLUDED_
-#define _UINFOEX_COUNTRYLIST_H_INCLUDED_
-
-VOID InitCountryListExt();
-INT_PTR ServiceGetCountryByNumber(WPARAM wParam,LPARAM lParam);
-
-#endif /* _UINFOEX_COUNTRYLIST_H_INCLUDED_ */ \ No newline at end of file
diff --git a/plugins/UserInfoEx/src/Flags/svc_flags.cpp b/plugins/UserInfoEx/src/Flags/svc_flags.cpp
index 751d6cfbf9..559141a0c0 100644
--- a/plugins/UserInfoEx/src/Flags/svc_flags.cpp
+++ b/plugins/UserInfoEx/src/Flags/svc_flags.cpp
@@ -538,7 +538,6 @@ static int OnContactSettingChanged(WPARAM wParam,LPARAM lParam) {
void SvcFlagsLoadModule()
{
PrepareBufferedFunctions();
- InitCountryListExt(); /* hack to replace core country list */
if(CallService(MS_UTILS_GETCOUNTRYLIST,(WPARAM)&nCountriesCount,(LPARAM)&countries))
nCountriesCount=0;
InitIcons(); /* load in iconlib */