summaryrefslogtreecommitdiff
path: root/include
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 /include
parent601ec263ad0887d7a8a090badc3c77cfcb24f0d5 (diff)
db_event_delete: unused parameter removed
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_database.inc2
-rw-r--r--include/m_database.h2
-rw-r--r--include/m_db_int.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/delphi/m_database.inc b/include/delphi/m_database.inc
index fee5eac3cb..35bb5118c1 100644
--- a/include/delphi/m_database.inc
+++ b/include/delphi/m_database.inc
@@ -81,7 +81,7 @@ hDbEvent should have been returned by db_event_add/first/last/next/prev()
Returns 0 on success, or nonzero if hDbEvent was invalid
Triggers a db/event/deleted event just *before* the event is deleted
}
-function db_event_delete(hContact:TMCONTACT; hDbEvent:TMEVENT):int; stdcall; external CoreDLL;
+function db_event_delete(hDbEvent:TMEVENT):int; stdcall; external CoreDLL;
{
Retrieves a handle to the first event in the chain for hContact
diff --git a/include/m_database.h b/include/m_database.h
index b9275e15c3..094a0c57fa 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -290,7 +290,7 @@ EXTERN_C MIR_CORE_DLL(int) db_event_count(MCONTACT hContact);
// Returns 0 on success, or nonzero if hDbEvent was invalid
// Triggers a db/event/deleted event just *before* the event is deleted
-EXTERN_C MIR_CORE_DLL(int) db_event_delete(MCONTACT hContact, MEVENT hDbEvent);
+EXTERN_C MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent);
// Edits an event in the database
// Returns 0 on success, or nonzero on error
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 1c1320a35a..a2a13f3d12 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -96,7 +96,7 @@ interface MIR_APP_EXPORT MIDatabase
STDMETHOD_(LONG, GetEventCount)(MCONTACT contactID) PURE;
STDMETHOD_(MEVENT, AddEvent)(MCONTACT contactID, DBEVENTINFO *dbe) PURE;
- STDMETHOD_(BOOL, DeleteEvent)(MCONTACT contactID, MEVENT hDbEvent) PURE;
+ STDMETHOD_(BOOL, DeleteEvent)(MEVENT hDbEvent) PURE;
STDMETHOD_(BOOL, EditEvent)(MCONTACT contactID, MEVENT hDbEvent, DBEVENTINFO *dbe) PURE;
STDMETHOD_(LONG, GetBlobSize)(MEVENT hDbEvent) PURE;
STDMETHOD_(BOOL, GetEvent)(MEVENT hDbEvent, DBEVENTINFO *dbe) PURE;
@@ -210,7 +210,7 @@ public:
////////////////////////////////////////////////////////////////////////////////////////
STDMETHODIMP_(MEVENT) AddEvent(MCONTACT, DBEVENTINFO*) override;
- STDMETHODIMP_(BOOL) DeleteEvent(MCONTACT, MEVENT) override;
+ STDMETHODIMP_(BOOL) DeleteEvent(MEVENT) override;
STDMETHODIMP_(BOOL) EditEvent(MCONTACT contactID, MEVENT hDbEvent, DBEVENTINFO *dbe);
STDMETHODIMP_(LONG) GetBlobSize(MEVENT) override;
STDMETHODIMP_(BOOL) MarkEventRead(MCONTACT, MEVENT) override;