summaryrefslogtreecommitdiff
path: root/src/modules/options
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-02 22:26:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-02 22:26:02 +0000
commitcb69ec6759977e8b2e07560f9a3d35d118142e0a (patch)
tree1f26fb484559dea1b8559196379be8867846f671 /src/modules/options
parent440815893cac3eaeb0bb322744cde75d976814be (diff)
unused code cleaned
git-svn-id: http://svn.miranda-ng.org/main/trunk@2616 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/options')
-rw-r--r--src/modules/options/options.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp
index 27b9baa06d..526b1a20b9 100644
--- a/src/modules/options/options.cpp
+++ b/src/modules/options/options.cpp
@@ -490,7 +490,7 @@ static void ExecuteFindFilterStringsTimer(HWND hdlg)
FilterTimerId = SetTimer(hdlg, NULL, 1, FilterSearchTimerFunc);
}
-static void FillFilterCombo(int enableKeywordFiltering, HWND hDlg, OptionsDlgData* dat)
+static void FillFilterCombo(HWND hDlg, OptionsDlgData* dat)
{
HINSTANCE *KnownInstances = (HINSTANCE*)alloca(sizeof(HINSTANCE)*dat->arOpd.getCount());
int countKnownInst = 0;
@@ -501,8 +501,7 @@ static void FillFilterCombo(int enableKeywordFiltering, HWND hDlg, OptionsDlgDat
SendDlgItemMessage(hDlg, IDC_KEYWORD_FILTER, (UINT) CB_SETITEMDATA, (WPARAM)index, (LPARAM)hInst);
TCHAR *tszModuleName = (TCHAR*)alloca(MAX_PATH*sizeof(TCHAR));
for (int i=0; i < dat->arOpd.getCount(); i++) {
- if ( !enableKeywordFiltering)
- FindFilterStrings(enableKeywordFiltering, FALSE, hDlg, dat->arOpd[i]); // only modules name (fast enougth)
+ FindFilterStrings(FALSE, FALSE, hDlg, dat->arOpd[i]); // only modules name (fast enougth)
HINSTANCE inst = dat->arOpd[i]->hInst;
if (inst == hInst)
@@ -537,8 +536,6 @@ static void FillFilterCombo(int enableKeywordFiltering, HWND hDlg, OptionsDlgDat
}
FilterLoadProgress = 100;
- if (enableKeywordFiltering)
- ExecuteFindFilterStringsTimer(hDlg);
}
static BOOL IsInsideTab(HWND hdlg, OptionsDlgData * dat, int i)
@@ -773,7 +770,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hdlg, UINT message, WPARAM wParam, L
MapWindowPoints(NULL, hdlg, (LPPOINT)&dat->rcTab, 2);
TabCtrl_AdjustRect( GetDlgItem(hdlg, IDC_TAB), FALSE, &dat->rcTab);
- FillFilterCombo(0, hdlg, dat);
+ FillFilterCombo(hdlg, dat);
SendMessage(hdlg, DM_REBUILDPAGETREE, 0, 0);
}
return TRUE;