Commit 7eb10a3 1 parent 4a85f70 commit 7eb10a3 Copy full SHA for 7eb10a3
File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,6 @@ const {
75
75
const kHandle = Symbol ( 'kHandle' ) ;
76
76
const kKeyObject = Symbol ( 'kKeyObject' ) ;
77
77
78
- // TODO(tniessen): remove all call sites and this function
79
- function getDefaultEncoding ( ) {
80
- return 'buffer' ;
81
- }
82
-
83
78
// This is here because many functions accepted binary strings without
84
79
// any explicit encoding in older versions of node, and we don't want
85
80
// to break them unnecessarily.
@@ -555,7 +550,6 @@ module.exports = {
555
550
getCiphers,
556
551
getCurves,
557
552
getDataViewOrTypedArrayBuffer,
558
- getDefaultEncoding,
559
553
getHashes,
560
554
kHandle,
561
555
kKeyObject,
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ const {
11
11
12
12
const stream = require ( 'stream' ) ;
13
13
14
- const {
15
- getDefaultEncoding,
16
- } = require ( 'internal/crypto/util' ) ;
17
-
18
14
module . exports = LazyTransform ;
19
15
20
16
function LazyTransform ( options ) {
@@ -29,7 +25,7 @@ function makeGetter(name) {
29
25
this . _writableState . decodeStrings = false ;
30
26
31
27
if ( ! this . _options || ! this . _options . defaultEncoding ) {
32
- this . _writableState . defaultEncoding = getDefaultEncoding ( ) ;
28
+ this . _writableState . defaultEncoding = 'buffer' ; // TODO(tniessen): remove
33
29
}
34
30
35
31
return this [ name ] ;
You can’t perform that action at this time.
0 commit comments