From cb69ec6759977e8b2e07560f9a3d35d118142e0a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 2 Dec 2012 22:26:02 +0000 Subject: unused code cleaned git-svn-id: http://svn.miranda-ng.org/main/trunk@2616 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/options/options.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/modules/options/options.cpp') 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; -- cgit v1.2.3