Remove unused vars and function.
authorayin <ayin>
Mon, 27 Aug 2007 18:30:59 +0000 (18:30 +0000)
committerayin <ayin>
Mon, 27 Aug 2007 18:30:59 +0000 (18:30 +0000)
src/init.C
src/rxvtperl.xs
src/rxvttoolkit.C

index f3f4cf4f4ea2346eef78ae6fa8a949a345e077c2..b09251225a016f5c98d57a47d0f09e217bdef1d1 100644 (file)
@@ -484,7 +484,6 @@ void
 rxvt_term::init_env ()
 {
   int i;
-  unsigned int u;
   char *val;
 
 #ifdef DISPLAY_IS_IP
index 59a6934d1a72b2cb510f49a77cb4bf6564161acb..489fabb3d87344773d4edea57fa097d036cdd5c3 100644 (file)
@@ -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
index 8d819a63ebd3efca5b68b0d15efdddb881d411eb..9503dd391e5b945d88b3db3f2491c2a4cac8d77f 100644 (file)
@@ -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))
         {