From: ayin Date: Mon, 3 Sep 2007 07:31:12 +0000 (+0000) Subject: Remove dead code and fix comment. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=2cc2f09b74c28182dfd2e32939ccdcc10aba711b;p=dana%2Furxvt.git Remove dead code and fix comment. --- diff --git a/src/misc.C b/src/misc.C index 3f586fd9..98caa73f 100644 --- a/src/misc.C +++ b/src/misc.C @@ -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;