@@ -37,7 +37,7 @@ const {
37
37
const assert = require ( 'internal/assert' ) ;
38
38
const LazyTransform = require ( 'internal/streams/lazy_transform' ) ;
39
39
40
- const { deprecate , normalizeEncoding } = require ( 'internal/util' ) ;
40
+ const { normalizeEncoding } = require ( 'internal/util' ) ;
41
41
42
42
// Lazy loaded for startup performance.
43
43
let StringDecoder ;
@@ -206,13 +206,6 @@ function setAuthTag(tagbuf) {
206
206
return this ;
207
207
}
208
208
209
- Object . defineProperty ( Cipher . prototype , 'setAuthTag' , {
210
- get : deprecate ( ( ) => setAuthTag ,
211
- 'Cipher.setAuthTag is deprecated and will be removed in a ' +
212
- 'future version of Node.js.' ,
213
- 'DEP0113' )
214
- } ) ;
215
-
216
209
Cipher . prototype . setAAD = function setAAD ( aadbuf , options ) {
217
210
if ( ! isArrayBufferView ( aadbuf ) ) {
218
211
throw new ERR_INVALID_ARG_TYPE ( 'buffer' ,
@@ -243,20 +236,8 @@ function addCipherPrototypeFunctions(constructor) {
243
236
constructor . prototype . setAutoPadding = Cipher . prototype . setAutoPadding ;
244
237
if ( constructor === Cipheriv ) {
245
238
constructor . prototype . getAuthTag = Cipher . prototype . getAuthTag ;
246
- Object . defineProperty ( constructor . prototype , 'setAuthTag' , {
247
- get : deprecate ( ( ) => setAuthTag ,
248
- 'Cipher.setAuthTag is deprecated and will be removed in ' +
249
- 'a future version of Node.js.' ,
250
- 'DEP0113' )
251
- } ) ;
252
239
} else {
253
240
constructor . prototype . setAuthTag = setAuthTag ;
254
- Object . defineProperty ( constructor . prototype , 'getAuthTag' , {
255
- get : deprecate ( ( ) => constructor . prototype . getAuthTag ,
256
- 'Decipher.getAuthTag is deprecated and will be removed ' +
257
- 'in a future version of Node.js.' ,
258
- 'DEP0113' )
259
- } ) ;
260
241
}
261
242
constructor . prototype . setAAD = Cipher . prototype . setAAD ;
262
243
}
0 commit comments