diff options
-rw-r--r-- | src/node_crypto.cc | 12 | ||||
-rw-r--r-- | src/node_crypto.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 9f4ab846cb..61ab265ce1 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2699,18 +2699,6 @@ int Connection::HandleSSLError(const char* func, } -void Connection::ClearError() { -#ifndef NDEBUG - HandleScope scope(ssl_env()->isolate()); - - // We should clear the error in JS-land - Local<String> error_key = ssl_env()->error_string(); - Local<Value> error = object()->Get(error_key); - CHECK_EQ(error->BooleanValue(), false); -#endif // NDEBUG -} - - void Connection::SetShutdownFlags() { HandleScope scope(ssl_env()->isolate()); diff --git a/src/node_crypto.h b/src/node_crypto.h index b406fb8aa6..3abfe973a7 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -390,7 +390,6 @@ class Connection : public AsyncWrap, public SSLWrap<Connection> { int HandleSSLError(const char* func, int rv, ZeroStatus zs, SyscallStatus ss); - void ClearError(); void SetShutdownFlags(); Connection(Environment* env, |