From 145caa20395a4466b855eb540a6da3896fa6cf2f Mon Sep 17 00:00:00 2001 From: ayin Date: Mon, 27 Aug 2007 18:30:59 +0000 Subject: [PATCH] Remove unused vars and function. --- src/init.C | 1 - src/rxvtperl.xs | 7 ------- src/rxvttoolkit.C | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/init.C b/src/init.C index f3f4cf4f..b0925122 100644 --- a/src/init.C +++ b/src/init.C @@ -484,7 +484,6 @@ void rxvt_term::init_env () { int i; - unsigned int u; char *val; #ifdef DISPLAY_IS_IP diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs index 59a6934d..489fabb3 100644 --- a/src/rxvtperl.xs +++ b/src/rxvtperl.xs @@ -74,12 +74,6 @@ wcs2sv (wchar_t *wstr, int len = -1) return sv; } -static SV * -new_ref (HV *hv, const char *klass) -{ - return sv_bless (newRV ((SV *)hv), gv_stashpv (klass, 1)); -} - static SV * newSVptr (void *ptr, const char *klass) { @@ -1403,7 +1397,6 @@ rxvt_term::special_decode (SV *text) CODE: { wchar_t *wstr = sv2wcs (text); - int wlen = wcslen (wstr); int dlen = 0; // find length diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C index 8d819a63..9503dd39 100644 --- a/src/rxvttoolkit.C +++ b/src/rxvttoolkit.C @@ -760,7 +760,7 @@ rxvt_color::set (rxvt_screen *screen, const char *name) // parse the non-standard "rgba:rrrr/gggg/bbbb/aaaa" format else if (strlen (name) != 4+5*4 || 4 != sscanf (name, "rgba:%4hx/%4hx/%4hx/%4hx%c", &c.r, &c.g, &c.b, &c.a, &eos)) { - XColor xc, xc_exact; + XColor xc; if (XParseColor (screen->dpy, screen->cmap, name, &xc)) { -- 2.34.1