From 1edcef6141f6efefd2a75f1390815e95427db15c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 10 Mar 2011 23:13:03 +0000 Subject: Remove redundant parameter from content_open API svn path=/trunk/netsurf/; revision=11964 --- content/content.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index 427cc6313..95e5e049c 100644 --- a/content/content.c +++ b/content/content.c @@ -295,7 +295,7 @@ struct handler_entry { float scale, colour background_colour, bool repeat_x, bool repeat_y); void (*open)(struct content *c, struct browser_window *bw, - struct content *page, unsigned int index, + struct content *page, struct box *box, struct object_params *params); void (*close)(struct content *c); @@ -1129,7 +1129,6 @@ void content_broadcast(struct content *c, content_msg msg, * \param bw browser window containing the content * \param page content of type CONTENT_HTML containing c, or 0 if not an * object within a page - * \param index index in page->data.html.object, or 0 if not an object * \param box box containing c, or 0 if not an object * \param params object parameters, or 0 if not an object * @@ -1137,7 +1136,7 @@ void content_broadcast(struct content *c, content_msg msg, */ void content_open(hlcache_handle *h, struct browser_window *bw, - struct content *page, unsigned int index, struct box *box, + struct content *page, struct box *box, struct object_params *params) { struct content *c = hlcache_handle_get_content(h); @@ -1145,7 +1144,7 @@ void content_open(hlcache_handle *h, struct browser_window *bw, assert(c->type < CONTENT_UNKNOWN); LOG(("content %p %s", c, llcache_handle_get_url(c->llcache))); if (handler_map[c->type].open) - handler_map[c->type].open(c, bw, page, index, box, params); + handler_map[c->type].open(c, bw, page, box, params); } -- cgit v1.2.3