summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-13 12:53:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-13 12:53:15 +0300
commit0775cb103604d76f614e417eac1c52fd3233221b (patch)
tree12d10e97cd1096c85095fffb6e8e6bdd75d4b5ce
parent1efed181443436fdce7a08f3d0c727738804d663 (diff)
StdFile: old evil removed
-rw-r--r--src/core/stdfile/src/file.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/stdfile/src/file.cpp b/src/core/stdfile/src/file.cpp
index e9720c9acd..90fe7b112e 100644
--- a/src/core/stdfile/src/file.cpp
+++ b/src/core/stdfile/src/file.cpp
@@ -116,15 +116,6 @@ static void PushFileEvent(MCONTACT hContact, MEVENT hdbe, LPARAM lParam)
}
}
-static int FileEventAdded(WPARAM wParam, LPARAM lParam)
-{
- DBEVENTINFO dbei = {};
- db_event_get(lParam, &dbei);
- if (!dbei.markedRead() && dbei.eventType == EVENTTYPE_FILE)
- PushFileEvent(wParam, lParam, 0);
- return 0;
-}
-
int SRFile_GetRegValue(HKEY hKeyBase, const wchar_t *szSubKey, const wchar_t *szValue, wchar_t *szOutput, int cbOutput)
{
HKEY hKey;
@@ -401,7 +392,6 @@ int LoadSendRecvFileModule(void)
Menu_AddMainMenuItem(&mi);
HookEvent(ME_SYSTEM_MODULESLOADED, SRFileModulesLoaded);
- HookEvent(ME_DB_EVENT_ADDED, FileEventAdded);
HookEvent(ME_OPT_INITIALISE, FileOptInitialise);
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, SRFilePreBuildMenu);
HookEvent(ME_PROTO_ACK, SRFileProtoAck);