summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/ctrl_tzcombo.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-08-23 15:49:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-08-23 15:49:18 +0000
commita69ec13dfad93e5995b589f96b113ac8c1774c79 (patch)
tree28e7dc3f4caf822c2b1b36bf4eb3eb1c8fd1fcfa /plugins/UserInfoEx/src/ctrl_tzcombo.cpp
parent84fd5b6fe3fa22c29c371cb58c83d33f5c92b521 (diff)
old unused code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@17203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/ctrl_tzcombo.cpp')
-rw-r--r--plugins/UserInfoEx/src/ctrl_tzcombo.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp
index 89028e9f55..b92524006f 100644
--- a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp
+++ b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp
@@ -21,22 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "stdafx.h"
-static INT_PTR EnumNamesProc(CTimeZone *pTimeZone, int, LPARAM lParam)
-{
- if (pTimeZone && pTimeZone->ptszDisplay)
- {
- int added = ComboBox_AddString((HWND)lParam, pTimeZone->ptszDisplay);
- if (SUCCEEDED(added))
- {
- if (FAILED(ComboBox_SetItemData((HWND)lParam, added, pTimeZone)))
- {
- ComboBox_DeleteString((HWND)lParam, added);
- }
- }
- }
- return 0;
-}
-
/**
* This functions fills a combobox given by @hCtrl with
* all items of the global timezone manager
@@ -82,28 +66,6 @@ CTzCombo::CTzCombo(HWND hDlg, WORD idCtrl, LPCSTR pszSetting)
/**
* This method does a binary search in the sorted
- * ComboBox for the item index. (old UIEX method)
- *
- * @param pTimeZone - CTimeZone compobox item data.
- *
- * @retval CB_ERR - item not found
- * @retval 0...n - index of the combobox item
- **/
-int CTzCombo::Find(CTimeZone *pTimeZone) const
-{
- int nItemIndex;
- int nItemCount = ComboBox_GetCount(_hwnd);
-
- for (nItemIndex = 0; nItemIndex < nItemCount; nItemIndex++)
- {
- if (pTimeZone == (CTimeZone *)ComboBox_GetItemData(_hwnd, nItemIndex))
- return nItemIndex;
- }
- return CB_ERR;
-}
-
-/**
- * This method does a binary search in the sorted
* ComboBox for the item index. (new core tz interface)
*
* @param pTimeZone - LPTIME_ZONE_INFORMATION to find.