summaryrefslogtreecommitdiff
path: root/src/events/custom_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/custom_event.c')
-rw-r--r--src/events/custom_event.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/events/custom_event.c b/src/events/custom_event.c
index 76d09bf..c3a99f9 100644
--- a/src/events/custom_event.c
+++ b/src/events/custom_event.c
@@ -18,8 +18,7 @@ static struct dom_event_private_vtable _event_vtable = {
};
/* Constructor */
-dom_exception _dom_custom_event_create(struct dom_document *doc,
- struct dom_custom_event **evt)
+dom_exception _dom_custom_event_create(struct dom_custom_event **evt)
{
*evt = malloc(sizeof(dom_custom_event));
if (*evt == NULL)
@@ -27,7 +26,7 @@ dom_exception _dom_custom_event_create(struct dom_document *doc,
((struct dom_event *) *evt)->vtable = &_event_vtable;
- return _dom_custom_event_initialise(doc, *evt);
+ return _dom_custom_event_initialise(*evt);
}
/* Destructor */
@@ -39,11 +38,10 @@ void _dom_custom_event_destroy(struct dom_custom_event *evt)
}
/* Initialise function */
-dom_exception _dom_custom_event_initialise(struct dom_document *doc,
- struct dom_custom_event *evt)
+dom_exception _dom_custom_event_initialise(struct dom_custom_event *evt)
{
evt->detail = NULL;
- return _dom_event_initialise(doc, &evt->base);
+ return _dom_event_initialise(&evt->base);
}
/* Finalise function */