summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 03:44:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 03:44:31 +0000
commit27e9c48ccc113ec0955b9c0239263e24751c279e (patch)
treec4e003ff304bc0a36a16fc0086b24c2ded55bbb4 /transcode.c
parent073bced3671d70f8764cdd09015648d859a0ad20 (diff)
* transcode.c (rb_econv_open): needless branch removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/transcode.c b/transcode.c
index d779741323..5158da3bba 100644
--- a/transcode.c
+++ b/transcode.c
@@ -944,9 +944,6 @@ rb_econv_open(const char *sname, const char *dname, int ecflags)
num_trans++;
num_additional++;
}
- else {
- ecflags &= ~(ECONV_CRLF_NEWLINE_ENCODER|ECONV_CR_NEWLINE_ENCODER);
- }
if (ecflags & ECONV_UNIVERSAL_NEWLINE_DECODER) {
transcoder_entry_t *e = get_transcoder_entry("universal_newline", "");
@@ -958,9 +955,6 @@ rb_econv_open(const char *sname, const char *dname, int ecflags)
num_additional++;
universal_newline_decoder_added = 1;
}
- else {
- ecflags &= ~ECONV_UNIVERSAL_NEWLINE_DECODER;
- }
ec = rb_econv_open_by_transcoder_entries(num_trans, entries);
xfree(entries);