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 /desktop | |
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 'desktop')
-rw-r--r-- | desktop/browser_window.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c index 3c072ef0f..3d1a19f60 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -330,22 +330,6 @@ browser_window__get_contextual_content(struct browser_window *bw, /** - * slow script handler - */ -static bool slow_script(void *ctx) -{ - static int count = 0; - NSLOG(netsurf, INFO, "Continuing execution %d", count); - count++; - if (count > 1) { - count = 0; - return false; - } - return true; -} - - -/** * implements the download operation of a window navigate */ static nserror @@ -3101,8 +3085,7 @@ browser_window_initialise_common(enum browser_window_create_flags flags, assert(bw); /* new javascript context for each window/(i)frame */ - err = js_newcontext(nsoption_int(script_timeout), - slow_script, NULL, &bw->jsctx); + err = js_newcontext(nsoption_int(script_timeout), &bw->jsctx); if (err != NSERROR_OK) return err; |