diff options
author | George Hazan <george.hazan@gmail.com> | 2016-08-31 13:30:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-08-31 13:30:20 +0000 |
commit | 2d091ed700332dd73d94353be44b9e1d8c22aeca (patch) | |
tree | f154ec246c1dd08ea77ead0b6d658e199d90061b /plugins/Clist_modern/src | |
parent | 77166a40c0080637af5bae1171ebbb078fc371f5 (diff) |
garbage cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17232 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.h | 41 | ||||
-rw-r--r-- | plugins/Clist_modern/src/modern_clcitems.cpp | 4 | ||||
-rw-r--r-- | plugins/Clist_modern/src/modern_commonprototypes.h | 1 |
3 files changed, 18 insertions, 28 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.h b/plugins/Clist_modern/src/modern_clc.h index 64fd85c7e2..da445957b7 100644 --- a/plugins/Clist_modern/src/modern_clc.h +++ b/plugins/Clist_modern/src/modern_clc.h @@ -337,49 +337,40 @@ typedef struct tagOVERLAYICONINFO } OVERLAYICONINFO;
// clc.c
-void ClcOptionsChanged(void);
+void ClcOptionsChanged(void);
// clcidents.c
-int cliGetRowsPriorTo(ClcGroup *group, ClcGroup *subgroup, int contactIndex);
-int FindItem(HWND hwnd, ClcData *dat, DWORD hItem, ClcContact **contact, ClcGroup **subgroup, int *isVisible, bool isIgnoreSubcontacts);
-int cliGetRowByIndex(ClcData *dat, int testindex, ClcContact **contact, ClcGroup **subgroup);
+int cliGetRowsPriorTo(ClcGroup *group, ClcGroup *subgroup, int contactIndex);
+int FindItem(HWND hwnd, ClcData *dat, DWORD hItem, ClcContact **contact, ClcGroup **subgroup, int *isVisible, bool isIgnoreSubcontacts);
+int cliGetRowByIndex(ClcData *dat, int testindex, ClcContact **contact, ClcGroup **subgroup);
// clcitems.c
ClcContact* cli_AddContactToGroup(ClcData *dat, ClcGroup *group, MCONTACT hContact);
-int cliIsVisibleContact(ClcCacheEntry *pce, ClcGroup *group);
-void cliRebuildEntireList(HWND hwnd, ClcData *dat);
-void cli_AddContactToTree(HWND hwnd, ClcData *dat, MCONTACT hContact, int updateTotalCount, int checkHideOffline);
-void cli_SortCLC(HWND hwnd, ClcData *dat, int useInsertionSort);
-int GetNewSelection(ClcGroup *group, int selection, int direction);
+int cliIsVisibleContact(ClcCacheEntry *pce, ClcGroup *group);
+void cliRebuildEntireList(HWND hwnd, ClcData *dat);
+void cli_AddContactToTree(HWND hwnd, ClcData *dat, MCONTACT hContact, int updateTotalCount, int checkHideOffline);
+void cli_SortCLC(HWND hwnd, ClcData *dat, int useInsertionSort);
+int GetNewSelection(ClcGroup *group, int selection, int direction);
// clcmsgs.c
LRESULT cli_ProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wParam, LPARAM lParam);
// clcutils.c
-void cliRecalcScrollBar(HWND hwnd, ClcData *dat);
-void cliBeginRenameSelection(HWND hwnd, ClcData *dat);
-int cliHitTest(HWND hwnd, ClcData *dat, int testx, int testy, ClcContact **contact, ClcGroup **group, DWORD *flags);
-void cliScrollTo(HWND hwnd, ClcData *dat, int desty, int noSmooth);
-int GetDropTargetInformation(HWND hwnd, ClcData *dat, POINT pt);
-void cli_LoadCLCOptions(HWND hwnd, ClcData *dat, BOOL bFirst);
+void cliRecalcScrollBar(HWND hwnd, ClcData *dat);
+void cliBeginRenameSelection(HWND hwnd, ClcData *dat);
+int cliHitTest(HWND hwnd, ClcData *dat, int testx, int testy, ClcContact **contact, ClcGroup **group, DWORD *flags);
+void cliScrollTo(HWND hwnd, ClcData *dat, int desty, int noSmooth);
+int GetDropTargetInformation(HWND hwnd, ClcData *dat, POINT pt);
+void cli_LoadCLCOptions(HWND hwnd, ClcData *dat, BOOL bFirst);
COLORREF cliGetColor(char *module, char *color, COLORREF defColor);
-// clcpaint.c
-void CLCPaint_cliPaintClc(HWND hwnd, ClcData *dat, HDC hdc, RECT *rcPaint);
-
// clcopts.c
int ClcOptInit(WPARAM wParam, LPARAM lParam);
DWORD GetDefaultExStyle(void);
void GetFontSetting(int i, LOGFONT *lf, COLORREF *colour, BYTE *effect, COLORREF *eColour1, COLORREF *eColour2);
-// clistsettings.c
-wchar_t* GetContactDisplayNameW(MCONTACT hContact, int mode);
-
// groups.c
-wchar_t* GetGroupNameTS(int idx, DWORD* pdwFlags);
-int RenameGroupT(WPARAM groupID, LPARAM newName);
-
-int GetContactCachedStatus(MCONTACT hContact);
+int GetContactCachedStatus(MCONTACT hContact);
#endif /* _CLC_H_ */
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index c9a86d389e..c10c11a20e 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -176,10 +176,10 @@ ClcContact* cli_AddContactToGroup(ClcData *dat, ClcGroup *group, MCONTACT hConta void cli_AddContactToTree(HWND hwnd, ClcData *dat, MCONTACT hContact, int updateTotalCount, int checkHideOffline)
{
ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(hContact);
- if (dat->IsMetaContactsEnabled && pdnce && pdnce->m_bIsSub)
+ if (dat->IsMetaContactsEnabled && pdnce->m_bIsSub)
return; //contact should not be added
- if (!dat->IsMetaContactsEnabled && pdnce && !mir_strcmp(pdnce->m_pszProto, META_PROTO))
+ if (!dat->IsMetaContactsEnabled && !mir_strcmp(pdnce->m_pszProto, META_PROTO))
return;
corecli.pfnAddContactToTree(hwnd, dat, hContact, updateTotalCount, checkHideOffline);
diff --git a/plugins/Clist_modern/src/modern_commonprototypes.h b/plugins/Clist_modern/src/modern_commonprototypes.h index 3aeb4ae795..b267c906b5 100644 --- a/plugins/Clist_modern/src/modern_commonprototypes.h +++ b/plugins/Clist_modern/src/modern_commonprototypes.h @@ -243,7 +243,6 @@ int cliGetRowsPriorTo(ClcGroup *group, ClcGroup *subgroup, int contactIndex) int cli_IconFromStatusMode(const char *szProto, int nStatus, MCONTACT hContact);
int cli_GetContactIcon(MCONTACT hContact);
int cli_RemoveEvent(MCONTACT hContact, MEVENT hDbEvent);
-void cli_AddContactToTree(HWND hwnd, ClcData *dat, MCONTACT hContact, int updateTotalCount, int checkHideOffline);
void cli_FreeContact(ClcContact*);
void cli_SetContactCheckboxes(ClcContact*, int);
LRESULT cli_ProcessExternalMessages(HWND hwnd, ClcData *dat, UINT msg, WPARAM wParam, LPARAM lParam);
|