summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-20 19:32:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-20 19:32:28 +0300
commit999d22f6c3c618cde52097547e53703664d7e665 (patch)
tree651589d4660b8346729c12f0bea93d0570fba1e3 /src
parent601ec263ad0887d7a8a090badc3c77cfcb24f0d5 (diff)
db_event_delete: unused parameter removed
Diffstat (limited to 'src')
-rw-r--r--src/core/stduihist/src/history.cpp5
-rw-r--r--src/mir_app/src/MDatabaseReadonly.cpp2
-rw-r--r--src/mir_app/src/mir_app.def2
-rw-r--r--src/mir_app/src/mir_app64.def2
-rw-r--r--src/mir_core/src/db.cpp4
5 files changed, 7 insertions, 8 deletions
diff --git a/src/core/stduihist/src/history.cpp b/src/core/stduihist/src/history.cpp
index 712a8c1027..05a9081153 100644
--- a/src/core/stduihist/src/history.cpp
+++ b/src/core/stduihist/src/history.cpp
@@ -229,15 +229,14 @@ static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LP
return TRUE;
case IDC_DELETEHISTORY:
- MEVENT hDbevent;
{
int index = SendDlgItemMessage(hwndDlg, IDC_LIST, LB_GETCURSEL, 0, 0);
if (index == LB_ERR)
break;
if (MessageBox(hwndDlg, TranslateT("Are you sure you want to delete this history item?"), TranslateT("Delete history"), MB_YESNO | MB_ICONQUESTION) == IDYES) {
- hDbevent = SendDlgItemMessage(hwndDlg, IDC_LIST, LB_GETITEMDATA, index, 0);
- db_event_delete(hContact, hDbevent);
+ MEVENT hDbevent = SendDlgItemMessage(hwndDlg, IDC_LIST, LB_GETITEMDATA, index, 0);
+ db_event_delete(hDbevent);
SendMessage(hwndDlg, DM_HREBUILD, 0, 0);
}
}
diff --git a/src/mir_app/src/MDatabaseReadonly.cpp b/src/mir_app/src/MDatabaseReadonly.cpp
index 1776a9d1a4..51dfcbf3ec 100644
--- a/src/mir_app/src/MDatabaseReadonly.cpp
+++ b/src/mir_app/src/MDatabaseReadonly.cpp
@@ -71,7 +71,7 @@ MEVENT MDatabaseReadonly::AddEvent(MCONTACT, DBEVENTINFO*)
return 0;
}
-BOOL MDatabaseReadonly::DeleteEvent(MCONTACT, MEVENT)
+BOOL MDatabaseReadonly::DeleteEvent(MEVENT)
{
return 1;
}
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def
index d4d62e5f0a..4a92f525a5 100644
--- a/src/mir_app/src/mir_app.def
+++ b/src/mir_app/src/mir_app.def
@@ -578,7 +578,7 @@ Miranda_WaitOnHandleEx @663
?AddEvent@MDatabaseReadonly@@UAGIIPAUDBEVENTINFO@@@Z @666 NONAME
?DeleteContact@MDatabaseReadonly@@UAGJI@Z @667 NONAME
?DeleteContactSetting@MDatabaseReadonly@@UAGHIPBD0@Z @668 NONAME
-?DeleteEvent@MDatabaseReadonly@@UAGHII@Z @669 NONAME
+?DeleteEvent@MDatabaseReadonly@@UAGHI@Z @669 NONAME
?EnumContactSettings@MDatabaseReadonly@@UAGHIP6AHPBDPAX@Z01@Z @670 NONAME
?EnumModuleNames@MDatabaseReadonly@@UAGHP6AHPBDPAX@Z1@Z @671 NONAME
?FindFirstUnreadEvent@MDatabaseReadonly@@UAGII@Z @672 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def
index bd99493d60..447cc83c99 100644
--- a/src/mir_app/src/mir_app64.def
+++ b/src/mir_app/src/mir_app64.def
@@ -578,7 +578,7 @@ Miranda_WaitOnHandleEx @663
?AddEvent@MDatabaseReadonly@@UEAAIIPEAUDBEVENTINFO@@@Z @666 NONAME
?DeleteContact@MDatabaseReadonly@@UEAAJI@Z @667 NONAME
?DeleteContactSetting@MDatabaseReadonly@@UEAAHIPEBD0@Z @668 NONAME
-?DeleteEvent@MDatabaseReadonly@@UEAAHII@Z @669 NONAME
+?DeleteEvent@MDatabaseReadonly@@UEAAHI@Z @669 NONAME
?EnumContactSettings@MDatabaseReadonly@@UEAAHIP6AHPEBDPEAX@Z01@Z @670 NONAME
?EnumModuleNames@MDatabaseReadonly@@UEAAHP6AHPEBDPEAX@Z1@Z @671 NONAME
?FindFirstUnreadEvent@MDatabaseReadonly@@UEAAII@Z @672 NONAME
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp
index d7a6355036..6a0f771945 100644
--- a/src/mir_core/src/db.cpp
+++ b/src/mir_core/src/db.cpp
@@ -371,9 +371,9 @@ MIR_CORE_DLL(int) db_event_count(MCONTACT hContact)
return (currDb == nullptr) ? 0 : currDb->GetEventCount(hContact);
}
-MIR_CORE_DLL(int) db_event_delete(MCONTACT hContact, MEVENT hDbEvent)
+MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent)
{
- return (currDb == nullptr) ? 0 : currDb->DeleteEvent(hContact, hDbEvent);
+ return (currDb == nullptr) ? 0 : currDb->DeleteEvent(hDbEvent);
}
MIR_CORE_DLL(int) db_event_edit(MCONTACT hContact, MEVENT hDbEvent, DBEVENTINFO *dbei)