From 4d55018c5e924e9489a839b1b9a8d6e6bff554b6 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 6 Sep 2008 03:44:31 +0000 Subject: * transcode.c (rb_econv_open): needless branch removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'transcode.c') diff --git a/transcode.c b/transcode.c index d77974132..5158da3bb 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); -- cgit