File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments