Skip to content

Commit eb068a0

Browse files
bnoordhuisaddaleax
authored andcommitted
src: remove unused Connection::ClearError()
PR-URL: #14514 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Tobias Nie�en <[email protected]>
1 parent 4b01d8c commit eb068a0

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/node_crypto.cc

-12
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

-1
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)