From eb068a052629f85a755097629bc27a348af1886d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 27 Jul 2017 17:33:35 +0200 Subject: [PATCH] src: remove unused Connection::ClearError() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/14514 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Jason Ginchereau Reviewed-By: Refael Ackermann Reviewed-By: Richard Lau Reviewed-By: Timothy Gu Reviewed-By: Tobias Nie�en --- src/node_crypto.cc | 12 ------------ src/node_crypto.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 9f4ab846cb8b15..61ab265ce193b4 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 error_key = ssl_env()->error_string(); - Local 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 b406fb8aa6867d..3abfe973a79ebd 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -390,7 +390,6 @@ class Connection : public AsyncWrap, public SSLWrap { int HandleSSLError(const char* func, int rv, ZeroStatus zs, SyscallStatus ss); - void ClearError(); void SetShutdownFlags(); Connection(Environment* env,