Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Aug 12, 2016
1 parent 187b4e9 commit 842e081
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ if (has_icu) {
from_enc = normalizeEncoding(from_enc);
to_enc = normalizeEncoding(to_enc);

if (from_enc === 'auto')
from_enc = normalizeEncoding(exports.detectEncoding(source));

if (from_enc === to_enc)
return source;

Expand Down Expand Up @@ -113,8 +110,6 @@ if (has_icu) {
pos >>>= 0;

encoding = normalizeEncoding(encoding || 'utf8');
if (encoding === 'auto')
encoding = normalizeEncoding(exports.detectEncoding(buf));

if (encoding === 'binary' || encoding === 'ascii')
return buf[pos];
Expand All @@ -130,8 +125,6 @@ if (has_icu) {

pos >>>= 0;
encoding = normalizeEncoding(encoding || 'utf8');
if (encoding === 'auto')
encoding = normalizeEncoding(exports.detectEncoding(buf));

if (encoding === 'binary' || encoding === 'ascii')
return String.fromCharCode(buf[pos]);
Expand All @@ -142,7 +135,6 @@ if (has_icu) {
};

} else {
exports.detectEncoding =
exports.transcode =
exports.codePointAt =
exports.charAt =
Expand Down

0 comments on commit 842e081

Please sign in to comment.