diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-08 21:58:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-08 21:58:33 +0000 |
commit | 56eab17c447514113ec49d7b5ab4e6db8acbee38 (patch) | |
tree | 6de3d44156b9d898ff6e39ff3d2dd6205d1781e4 /plugins/Clist_modern/src/modern_clui.cpp | |
parent | ed1356b99f5b2789496f2813ba9948c24149e60c (diff) |
old pieces of avatar processing code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@13487 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clui.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp index ed66adfadf..4e160f4ad0 100644 --- a/plugins/Clist_modern/src/modern_clui.cpp +++ b/plugins/Clist_modern/src/modern_clui.cpp @@ -203,20 +203,6 @@ int CLUI::OnEvent_ContactMenuPreBuild(WPARAM, LPARAM) Menu_ShowItem(hHideAvatarMenuItem, false);
}
else {
- int has_avatar;
-
- if (ServiceExists(MS_AV_GETAVATARBITMAP))
- has_avatar = CallService(MS_AV_GETAVATARBITMAP, (WPARAM)hItem, 0);
- else {
- DBVARIANT dbv;
- if (db_get_ts(hItem, "ContactPhoto", "File", &dbv))
- has_avatar = 0;
- else {
- has_avatar = 1;
- db_free(&dbv);
- }
- }
-
bool bHideAvatar = db_get_b(hItem, "CList", "HideContactAvatar", 0) != 0;
Menu_ShowItem(hShowAvatarMenuItem, bHideAvatar);
Menu_ShowItem(hHideAvatarMenuItem, !bHideAvatar);
|