@@ -37,7 +37,7 @@ const {
3737const assert = require ( 'internal/assert' ) ;
3838const LazyTransform = require ( 'internal/streams/lazy_transform' ) ;
3939
40- const { deprecate , normalizeEncoding } = require ( 'internal/util' ) ;
40+ const { normalizeEncoding } = require ( 'internal/util' ) ;
4141
4242// Lazy loaded for startup performance.
4343let StringDecoder ;
@@ -206,13 +206,6 @@ function setAuthTag(tagbuf) {
206206 return this ;
207207}
208208
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-
216209Cipher . prototype . setAAD = function setAAD ( aadbuf , options ) {
217210 if ( ! isArrayBufferView ( aadbuf ) ) {
218211 throw new ERR_INVALID_ARG_TYPE ( 'buffer' ,
@@ -243,20 +236,8 @@ function addCipherPrototypeFunctions(constructor) {
243236 constructor . prototype . setAutoPadding = Cipher . prototype . setAutoPadding ;
244237 if ( constructor === Cipheriv ) {
245238 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- } ) ;
252239 } else {
253240 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- } ) ;
260241 }
261242 constructor . prototype . setAAD = Cipher . prototype . setAAD ;
262243}
0 commit comments