diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-05 09:50:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-05 09:50:12 +0000 |
commit | 8baffe6ef664e53a6acf0c3f52e900d37780fabb (patch) | |
tree | c8beb7b613d023d0ea60a4c8d8cdf7427e7ded17 /regcomp.c | |
parent | 0e4b86b5b94c8ce6abedde5a525f0a48c36ddd1d (diff) | |
download | ruby-8baffe6ef664e53a6acf0c3f52e900d37780fabb.tar.gz |
* class.c (rb_obj_methods), compile.c (iseq_compile_each),
iseq.c(iseq_load, rb_iseq_parameters), pack.c (pack_pack),
regcomp.c (is_not_included, update_string_node_case_fold),
transcode.c (rb_econv_open0, make_replacement),
vm_eval.c (raise_method_missing): remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2433,7 +2433,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: @@ -2547,7 +2547,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) { @@ -3223,7 +3222,7 @@ next_setup(Node* node, Node* next_node, 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; @@ -3239,7 +3238,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) { sbuf = (UChar* )xrealloc(sbuf, sbuf_size * 2); |