File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,6 @@ const {
7575const kHandle = Symbol ( 'kHandle' ) ;
7676const kKeyObject = Symbol ( 'kKeyObject' ) ;
7777
78- // TODO(tniessen): remove all call sites and this function
79- function getDefaultEncoding ( ) {
80- return 'buffer' ;
81- }
82-
8378// This is here because many functions accepted binary strings without
8479// any explicit encoding in older versions of node, and we don't want
8580// to break them unnecessarily.
@@ -555,7 +550,6 @@ module.exports = {
555550 getCiphers,
556551 getCurves,
557552 getDataViewOrTypedArrayBuffer,
558- getDefaultEncoding,
559553 getHashes,
560554 kHandle,
561555 kKeyObject,
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ const {
1111
1212const stream = require ( 'stream' ) ;
1313
14- const {
15- getDefaultEncoding,
16- } = require ( 'internal/crypto/util' ) ;
17-
1814module . exports = LazyTransform ;
1915
2016function LazyTransform ( options ) {
@@ -29,7 +25,7 @@ function makeGetter(name) {
2925 this . _writableState . decodeStrings = false ;
3026
3127 if ( ! this . _options || ! this . _options . defaultEncoding ) {
32- this . _writableState . defaultEncoding = getDefaultEncoding ( ) ;
28+ this . _writableState . defaultEncoding = 'buffer' ; // TODO(tniessen): remove
3329 }
3430
3531 return this [ name ] ;
You can’t perform that action at this time.
0 commit comments