Skip to content

Commit 842e081

Browse files
committed
Remove old code
1 parent 187b4e9 commit 842e081

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/unicode.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ if (has_icu) {
6767
from_enc = normalizeEncoding(from_enc);
6868
to_enc = normalizeEncoding(to_enc);
6969

70-
if (from_enc === 'auto')
71-
from_enc = normalizeEncoding(exports.detectEncoding(source));
72-
7370
if (from_enc === to_enc)
7471
return source;
7572

@@ -113,8 +110,6 @@ if (has_icu) {
113110
pos >>>= 0;
114111

115112
encoding = normalizeEncoding(encoding || 'utf8');
116-
if (encoding === 'auto')
117-
encoding = normalizeEncoding(exports.detectEncoding(buf));
118113

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

131126
pos >>>= 0;
132127
encoding = normalizeEncoding(encoding || 'utf8');
133-
if (encoding === 'auto')
134-
encoding = normalizeEncoding(exports.detectEncoding(buf));
135128

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

144137
} else {
145-
exports.detectEncoding =
146138
exports.transcode =
147139
exports.codePointAt =
148140
exports.charAt =

0 commit comments

Comments
 (0)