Skip to content
Browse files

Remove unused variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 1d30263 commit bfba60f8fea397e1cb0e2860d43294dbd1a070e4 @nurse nurse committed Mar 5, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 regcomp.c
View
6 regcomp.c
@@ -2516,7 +2516,7 @@ is_not_included(Node* x, Node* y, regex_t* reg)
int i;
OnigDistance len;
OnigCodePoint code;
- UChar *p, c;
+ UChar *p;
int ytype;
retry:
@@ -2641,7 +2641,6 @@ is_not_included(Node* x, Node* y, regex_t* reg)
if (NSTRING_LEN(x) == 0)
break;
- c = *(xs->s);
switch (ytype) {
case NT_CTYPE:
switch (NCTYPE(y)->ctype) {
@@ -3354,7 +3353,7 @@ next_setup(Node* node, Node* next_node, int in_root, regex_t* reg)
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 @@ update_string_node_case_fold(regex_t* reg, Node *node)
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);

0 comments on commit bfba60f

Please sign in to comment.
Something went wrong with that request. Please try again.