diff --git a/src/connection.ts b/src/connection.ts index 8314a399d..99025c752 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -1769,18 +1769,7 @@ class Connection extends EventEmitter { */ on(event: 'secure', listener: (cleartext: import('tls').TLSSocket) => void): this - /** - * A SSPI token was send by the server. - * - * @deprecated - */ - on(event: 'sspichallenge', listener: (token: import('./token/token').SSPIToken) => void): this - on(event: string | symbol, listener: (...args: any[]) => void) { - if (event === 'sspichallenge') { - emitSSPIChallengeEventDeprecationWarning(); - } - return super.on(event, listener); } @@ -1840,10 +1829,6 @@ class Connection extends EventEmitter { * @private */ emit(event: 'rollbackTransaction'): boolean - /** - * @private - */ - emit(event: 'sspichallenge', token: import('./token/token').SSPIToken): boolean emit(event: string | symbol, ...args: any[]) { return super.emit(event, ...args); @@ -3128,21 +3113,6 @@ class Connection extends EventEmitter { } } -let sspichallengeEventDeprecationWarningEmitted = false; -function emitSSPIChallengeEventDeprecationWarning() { - if (sspichallengeEventDeprecationWarningEmitted) { - return; - } - - sspichallengeEventDeprecationWarningEmitted = true; - - process.emitWarning( - 'The `sspichallenge` event is deprecated and will be removed.', - 'DeprecationWarning', - Connection.prototype.on - ); -} - export default Connection; module.exports = Connection; diff --git a/src/token/handler.ts b/src/token/handler.ts index 244c64da7..48899895d 100644 --- a/src/token/handler.ts +++ b/src/token/handler.ts @@ -278,8 +278,6 @@ export class Login7TokenHandler extends TokenHandler { this.connection.ntlmpacket = token.ntlmpacket; this.connection.ntlmpacketBuffer = token.ntlmpacketBuffer; } - - this.connection.emit('sspichallenge', token); } onDatabaseChange(token: DatabaseEnvChangeToken) {