Skip to content

Commit e658d32

Browse files
committed
src: remove unused Connection::ClearError()
PR-URL: #14514 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Ginchereau <jasongin@microsoft.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Tobias Nie�en <tniessen@tnie.de>
1 parent f3afe29 commit e658d32

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/node_crypto.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,18 +2699,6 @@ int Connection::HandleSSLError(const char* func,
26992699
}
27002700

27012701

2702-
void Connection::ClearError() {
2703-
#ifndef NDEBUG
2704-
HandleScope scope(ssl_env()->isolate());
2705-
2706-
// We should clear the error in JS-land
2707-
Local<String> error_key = ssl_env()->error_string();
2708-
Local<Value> error = object()->Get(error_key);
2709-
CHECK_EQ(error->BooleanValue(), false);
2710-
#endif // NDEBUG
2711-
}
2712-
2713-
27142702
void Connection::SetShutdownFlags() {
27152703
HandleScope scope(ssl_env()->isolate());
27162704

src/node_crypto.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ class Connection : public AsyncWrap, public SSLWrap<Connection> {
390390

391391
int HandleSSLError(const char* func, int rv, ZeroStatus zs, SyscallStatus ss);
392392

393-
void ClearError();
394393
void SetShutdownFlags();
395394

396395
Connection(Environment* env,

0 commit comments

Comments
 (0)