diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-03-21 18:07:50 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-03-21 18:07:50 +0000 |
commit | 313dc9b099a172914f312120f0f9d0260a3588cf (patch) | |
tree | c669bd46f251eee054d70cad07814877c999f750 /content | |
parent | 2503b17f02588e7e3705ccd62fa4b80ce256dcbe (diff) | |
download | netsurf-313dc9b099a172914f312120f0f9d0260a3588cf.tar.gz netsurf-313dc9b099a172914f312120f0f9d0260a3588cf.tar.bz2 |
JS: Remove unused slow script callback
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content')
-rw-r--r-- | content/handlers/javascript/duktape/dukky.c | 2 | ||||
-rw-r--r-- | content/handlers/javascript/js.h | 6 | ||||
-rw-r--r-- | content/handlers/javascript/none/none.c | 3 |
3 files changed, 3 insertions, 8 deletions
diff --git a/content/handlers/javascript/duktape/dukky.c b/content/handlers/javascript/duktape/dukky.c index dcbff6854..560a12f56 100644 --- a/content/handlers/javascript/duktape/dukky.c +++ b/content/handlers/javascript/duktape/dukky.c @@ -608,7 +608,7 @@ void js_finalise(void) /* exported interface documented in js.h */ nserror -js_newcontext(int timeout, jscallback *cb, void *cbctx, jscontext **jsctx) +js_newcontext(int timeout, jscontext **jsctx) { duk_context *ctx; jscontext *ret = calloc(1, sizeof(*ret)); diff --git a/content/handlers/javascript/js.h b/content/handlers/javascript/js.h index d5af7211a..522dd9879 100644 --- a/content/handlers/javascript/js.h +++ b/content/handlers/javascript/js.h @@ -28,8 +28,6 @@ typedef struct jscontext jscontext; typedef struct jsobject jsobject; -typedef bool(jscallback)(void *ctx); - struct dom_event; struct dom_document; struct dom_node; @@ -52,12 +50,10 @@ void js_finalise(void); * There is usually one context per browsing context (browser window) * * \param timeout elapsed wallclock time (in seconds) before \a callback is called - * \param cb the callback when the runtime exceeds the timeout - * \param cbctx The context to pass to the callback * \param jsctx Updated to the created JS context * \return NSERROR_OK on success, appropriate error otherwise. */ -nserror js_newcontext(int timeout, jscallback *cb, void *cbctx, jscontext **jsctx); +nserror js_newcontext(int timeout, jscontext **jsctx); /** * Destroy a previously created context diff --git a/content/handlers/javascript/none/none.c b/content/handlers/javascript/none/none.c index 80a9ce49c..26b9b5300 100644 --- a/content/handlers/javascript/none/none.c +++ b/content/handlers/javascript/none/none.c @@ -35,8 +35,7 @@ void js_finalise(void) { } -nserror js_newcontext(int timeout, jscallback *cb, void *cbctx, - jscontext **jsctx) +nserror js_newcontext(int timeout, jscontext **jsctx) { *jsctx = NULL; return NSERROR_OK; |