summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-05 09:50:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-05 09:50:12 (GMT)
commit8baffe6ef664e53a6acf0c3f52e900d37780fabb (patch)
treec8beb7b613d023d0ea60a4c8d8cdf7427e7ded17 /transcode.c
parent0e4b86b5b94c8ce6abedde5a525f0a48c36ddd1d (diff)
* 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 'transcode.c')
-rw-r--r--transcode.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/transcode.c b/transcode.c
index ac34354..15d9f5c 100644
--- a/transcode.c
+++ b/transcode.c
@@ -979,22 +979,19 @@ rb_econv_open0(const char *sname, const char *dname, int ecflags)
int num_trans;
rb_econv_t *ec;
- rb_encoding *senc, *denc;
int sidx, didx;
- senc = NULL;
if (*sname) {
sidx = rb_enc_find_index(sname);
if (0 <= sidx) {
- senc = rb_enc_from_index(sidx);
+ rb_enc_from_index(sidx);
}
}
- denc = NULL;
if (*dname) {
didx = rb_enc_find_index(dname);
if (0 <= didx) {
- denc = rb_enc_from_index(didx);
+ rb_enc_from_index(didx);
}
}
@@ -2160,7 +2157,6 @@ make_replacement(rb_econv_t *ec)
{
rb_transcoding *tc;
const rb_transcoder *tr;
- rb_encoding *enc;
const unsigned char *replacement;
const char *repl_enc;
const char *ins_enc;
@@ -2174,7 +2170,7 @@ make_replacement(rb_econv_t *ec)
tc = ec->last_tc;
if (*ins_enc) {
tr = tc->transcoder;
- enc = rb_enc_find(tr->dst_encoding);
+ rb_enc_find(tr->dst_encoding);
replacement = (const unsigned char *)get_replacement_character(ins_enc, &len, &repl_enc);
}
else {