From 9d9a0ed0b2b6228a9b6e9206e19d3016b9bfb2ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 Jul 2014 07:28:15 +0000 Subject: old stubs removed completely git-svn-id: http://svn.miranda-ng.org/main/trunk@9959 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_blind/src/init.cpp | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'plugins') diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp index cf5a47b5c7..d2302364e7 100644 --- a/plugins/Clist_blind/src/init.cpp +++ b/plugins/Clist_blind/src/init.cpp @@ -40,10 +40,6 @@ void LoadClcOptions(HWND hwnd, ClcData *dat, BOOL); int GetRowHeight(ClcData *dat, int item); void SortCLC(HWND hwnd, ClcData *dat, int useInsertionSort); -int ( *pfnGetRowHeight )(ClcData *dat, int item); -void ( *pfnSortCLC )( HWND hwnd, ClcData *dat, int useInsertionSort ); - - ///////////////////////////////////////////////////////////////////////////////////////// // external functions @@ -663,11 +659,9 @@ void RebuildEntireList(HWND hwnd, ClcData *dat) RebuildEntireListInternal(hwnd, dat, TRUE); } -void SetGroupExpand(HWND hwnd, ClcData *tmp_dat, struct ClcGroup *group, int newState) +void SetGroupExpand(HWND hwnd, ClcData *dat, struct ClcGroup *group, int newState) { - ClcData *dat = (ClcData*)tmp_dat; - - coreCli.pfnSetGroupExpand(hwnd, tmp_dat, group, newState); + coreCli.pfnSetGroupExpand(hwnd, dat, group, newState); dat->need_rebuild = TRUE; } @@ -687,21 +681,16 @@ void LoadClcOptions(HWND hwnd, ClcData *dat, BOOL bFirst) dat->rowHeight = SendMessage(dat->hwnd_list, LB_GETITEMHEIGHT, 0, 0); } -int GetRowHeight(ClcData *tmp_dat, int item) +int GetRowHeight(ClcData *dat, int item) { - ClcData *dat = (ClcData*)tmp_dat; - dat->rowHeight = SendMessage(dat->hwnd_list, LB_GETITEMHEIGHT, 0, 0); return dat->rowHeight; } -void SortCLC(HWND hwnd, ClcData *tmp_dat, int useInsertionSort) +void SortCLC(HWND hwnd, ClcData *dat, int useInsertionSort) { - if ( tmp_dat->needsResort ) - { - ClcData *dat = (ClcData*)tmp_dat; - - pfnSortCLC(hwnd, tmp_dat, useInsertionSort); + if (dat->needsResort) { + coreCli.pfnSortCLC(hwnd, dat, useInsertionSort); dat->need_rebuild = TRUE; } } -- cgit v1.2.3