diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-21 12:51:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-21 12:51:54 +0300 |
commit | 803e7b0b5e7c84a814601141fcb7634516eefa30 (patch) | |
tree | 20d3716dd44570773f131d7cce92dc3480f8eaed /src/mir_app | |
parent | ca5001026a94f702c4012c5e8d2093ad3f51c1fa (diff) |
EV_PROTO_DBSETTINGSCHANGED - old useless stub removed
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/proto_accs.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mir_app/src/proto_accs.cpp b/src/mir_app/src/proto_accs.cpp index c2fda9e605..5dbb088efd 100644 --- a/src/mir_app/src/proto_accs.cpp +++ b/src/mir_app/src/proto_accs.cpp @@ -32,7 +32,7 @@ void BuildProtoMenus(); HICON Proto_GetIcon(PROTO_INTERFACE *ppro, int iconIndex);
static bool bModuleInitialized = false;
-static HANDLE hHooks[4];
+static HANDLE hHooks[3];
static int CompareAccounts(const PROTOACCOUNT* p1, const PROTOACCOUNT* p2)
{
@@ -200,16 +200,6 @@ static int OnContactDeleted(WPARAM hContact, LPARAM lParam) return 0;
}
-static int OnDbSettingsChanged(WPARAM hContact, LPARAM lParam)
-{
- if (hContact) {
- PROTOACCOUNT *pa = Proto_GetAccount(hContact);
- if (pa->IsEnabled() && pa->ppro)
- pa->ppro->OnEvent(EV_PROTO_DBSETTINGSCHANGED, hContact, lParam);
- }
- return 0;
-}
-
static int InitializeStaticAccounts(WPARAM, LPARAM)
{
int count = 0;
@@ -273,7 +263,6 @@ int LoadAccountsModule(void) hHooks[0] = HookEvent(ME_SYSTEM_MODULESLOADED, InitializeStaticAccounts);
hHooks[1] = HookEvent(ME_SYSTEM_PRESHUTDOWN, UninitializeStaticAccounts);
hHooks[2] = HookEvent(ME_DB_CONTACT_DELETED, OnContactDeleted);
- hHooks[3] = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, OnDbSettingsChanged);
return 0;
}
|