summaryrefslogtreecommitdiff
path: root/src/modules/metacontacts/meta_menu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-15 18:02:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-15 18:02:40 +0000
commit06ed0d60176a4d3529999614825f3594b6cb54e9 (patch)
treee12b4593698d268b17f6668a5ab79f0d0a986827 /src/modules/metacontacts/meta_menu.cpp
parent20a2d3dc9f8ab2e2e8833a1c83cf2dd30f25aa8e (diff)
huge clutch sawed out of the MC engine
git-svn-id: http://svn.miranda-ng.org/main/trunk@8627 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_menu.cpp')
-rw-r--r--src/modules/metacontacts/meta_menu.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/modules/metacontacts/meta_menu.cpp b/src/modules/metacontacts/meta_menu.cpp
index c185867947..f6116a03ea 100644
--- a/src/modules/metacontacts/meta_menu.cpp
+++ b/src/modules/metacontacts/meta_menu.cpp
@@ -224,34 +224,6 @@ INT_PTR Meta_Default(WPARAM hSub, LPARAM wParam)
return 0;
}
-/** Set/unset (i.e. toggle) contact to force use of default contact
-*
-* Set the given contact to be the default one for the metacontact to which it is linked.
-*
-* @param wParam : HANDLE to the MetaContact to be set as default
-* @param lParam :HWND to the clist window
-(This means the function has been called via the contact menu).
-*/
-
-INT_PTR Meta_ForceDefault(WPARAM hMeta, LPARAM)
-{
- // the wParam is a MetaContact
- DBCachedContact *cc = CheckMeta(hMeta);
- if (cc) {
- BOOL current = db_get_b(hMeta, META_PROTO, "ForceDefault", 0);
- current = !current;
- db_set_b(hMeta, META_PROTO, "ForceDefault", (BYTE)current);
-
- db_set_dw(hMeta, META_PROTO, "ForceSend", 0);
-
- if (current)
- NotifyEventHooks(hEventForceSend, hMeta, Meta_GetContactHandle(cc, cc->nDefault));
- else
- NotifyEventHooks(hEventUnforceSend, hMeta, 0);
- }
- return 0;
-}
-
/** Called when the context-menu of a contact is about to be displayed
*
* This will test which of the 4 menu item should be displayed, depending