summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp14
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);