From 741dda6976fd65c64eddeba16762c10f60e3ebc2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 26 Jul 2013 10:50:46 +0200 Subject: [PATCH 1/1] remove unused function eval() --- surf.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/surf.c b/surf.c index 1a9b17a..ff4727e 100644 --- a/surf.c +++ b/surf.c @@ -112,7 +112,6 @@ static gboolean deletion_interface(WebKitWebView *view, static void destroyclient(Client *c); static void destroywin(GtkWidget* w, Client *c); static void die(const char *errstr, ...); -static void eval(Client *c, const Arg *arg); static void find(Client *c, const Arg *arg); static void fullscreen(Client *c, const Arg *arg); static void geopolicyrequested(WebKitWebView *v, WebKitWebFrame *f, @@ -1103,13 +1102,6 @@ spawn(Client *c, const Arg *arg) { } static void -eval(Client *c, const Arg *arg) { - WebKitWebFrame *frame = webkit_web_view_get_main_frame(c->view); - evalscript(webkit_web_frame_get_global_context(frame), - ((char **)arg->v)[0], ""); -} - -static void stop(Client *c, const Arg *arg) { webkit_web_view_stop_loading(c->view); } -- 1.8.3.4