ruby-changes:22856
From: naruse <ko1@a...>
Date: Mon, 5 Mar 2012 16:41:03 +0900 (JST)
Subject: [ruby-changes:22856] naruse:r34905 (trunk): Remove unused variables.
naruse 2012-03-05 16:40:51 +0900 (Mon, 05 Mar 2012) New Revision: 34905 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34905 Log: Remove unused variables. Modified files: trunk/regcomp.c Index: regcomp.c =================================================================== --- regcomp.c (revision 34904) +++ regcomp.c (revision 34905) @@ -2516,7 +2516,7 @@ int i; OnigDistance len; OnigCodePoint code; - UChar *p, c; + UChar *p; int ytype; retry: @@ -2641,7 +2641,6 @@ if (NSTRING_LEN(x) == 0) break; - c = *(xs->s); switch (ytype) { case NT_CTYPE: switch (NCTYPE(y)->ctype) { @@ -3354,7 +3353,7 @@ static int update_string_node_case_fold(regex_t* reg, Node *node) { - UChar *p, *q, *end, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN]; + UChar *p, *end, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN]; UChar *sbuf, *ebuf, *sp; int r, i, len; OnigDistance sbuf_size; @@ -3370,7 +3369,6 @@ p = sn->s; while (p < end) { len = ONIGENC_MBC_CASE_FOLD(reg->enc, reg->case_fold_flag, &p, end, buf); - q = buf; for (i = 0; i < len; i++) { if (sp >= ebuf) { UChar* p = (UChar* )xrealloc(sbuf, sbuf_size * 2); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/