Remove dead code and fix comment.
authorayin <ayin>
Mon, 3 Sep 2007 07:31:12 +0000 (07:31 +0000)
committerayin <ayin>
Mon, 3 Sep 2007 07:31:12 +0000 (07:31 +0000)
src/misc.C

index 3f586fd942742711a33ee3a0e3e6cd18c7021099..98caa73f68d7e93b8cad32016f2f1e237c151138 100644 (file)
@@ -235,8 +235,7 @@ rxvt_exit_failure () THROW ((class rxvt_failure_exception))
 }
 
 /*
- * remove leading/trailing space and strip-off leading/trailing quotes.
- * in place.
+ * remove leading/trailing space in place.
  */
 char           *
 rxvt_Str_trim (char *str) NOTHROW
@@ -256,15 +255,6 @@ rxvt_Str_trim (char *str) NOTHROW
   while (r > s && isspace (*r))
     r--;
 
-#if 0
-  /* skip matching leading/trailing quotes */
-  if (*s == '"' && *r == '"' && n > 1)
-    {
-      s++;
-      n -= 2;
-    }
-#endif
-
   memmove (str, s, r + 1 - s);
   str[r + 1 - s] = 0;