summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-20 17:42:25 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-20 17:42:25 +0100
commit7e9a85a5cb31a2ddefd06498eff33df724bdc6cf (patch)
treedfb08e4c6bacb8ca98fdb3a0e2dbddaaf0a0d4b6 /surf.c
parentadc650f3999aeb9a781efad10b91b74ae5371f11 (diff)
downloadsurf-7e9a85a5cb31a2ddefd06498eff33df724bdc6cf.tar.gz
surf-7e9a85a5cb31a2ddefd06498eff33df724bdc6cf.tar.bz2
surf-7e9a85a5cb31a2ddefd06498eff33df724bdc6cf.zip
Cleanup remaining unused variables and copystr()
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/surf.c b/surf.c
index 7ba892e..804e546 100644
--- a/surf.c
+++ b/surf.c
@@ -109,7 +109,6 @@ static gboolean showxid = FALSE;
static char winid[64];
static char togglestats[10];
static char pagestats[2];
-static GTlsDatabase *tlsdb;
static int cookiepolicy;
static char *stylefile = NULL;
static const char *useragent;
@@ -124,7 +123,6 @@ static void clipboard(Client *c, const Arg *a);
static WebKitCookieAcceptPolicy cookiepolicy_get(void);
static char cookiepolicy_set(const WebKitCookieAcceptPolicy p);
-static char *copystr(char **str, const char *src);
static GtkWidget *createview(WebKitWebView *v, WebKitNavigationAction *a,
Client *c);
static gboolean decidepolicy(WebKitWebView *v, WebKitPolicyDecision *d,
@@ -379,19 +377,6 @@ clipboard(Client *c, const Arg *a)
}
}
-char *
-copystr(char **str, const char *src)
-{
- char *tmp;
- tmp = g_strdup(src);
-
- if (str && *str) {
- g_free(*str);
- *str = tmp;
- }
- return tmp;
-}
-
GtkWidget *
createview(WebKitWebView *v, WebKitNavigationAction *a, Client *c)
{
@@ -876,7 +861,6 @@ Client *
newclient(Client *rc)
{
Client *c;
- gdouble dpi;
if (!(c = calloc(1, sizeof(Client))))
die("Cannot malloc!\n");
@@ -1235,8 +1219,6 @@ void
setup(void)
{
int i;
- WebKitWebContext *context;
- GError *error = NULL;
/* clean up any zombies immediately */
sigchld(0);