Browse Source

chore: remove upstreamed node_crypto CHECK patch (#20406)

Shelley Vohr 5 years ago
parent
commit
f054d5862c

+ 0 - 1
patches/node/.patches

@@ -18,7 +18,6 @@ pass_all_globals_through_require.patch
 call_process_log_from_fallback_stream_on_windows.patch
 fixme_use_redefined_version_of_internalmodulestat.patch
 fixme_remove_async_id_assertion_check.patch
-src_use_check_false_in_switch_default_case.patch
 fixme_comment_trace_event_macro.patch
 fix_export_node_abort_and_assert.patch
 fix_key_gen_apis_are_not_available_in_boringssl.patch

+ 0 - 20
patches/node/src_use_check_false_in_switch_default_case.patch

@@ -1,20 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Nitish Sakhawalkar <[email protected]>
-Date: Thu, 7 Mar 2019 17:02:13 -0800
-Subject: src: use CHECK(false) in switch default case
-
-Porting https://github.com/nodejs/node/pull/26502
-
-diff --git a/src/node_crypto.cc b/src/node_crypto.cc
-index dd78a59742fc05e938ba2397d3701b2ac8ccfc23..bca482cc9724fef680196a192a6bbd7b4d2e4fde 100644
---- a/src/node_crypto.cc
-+++ b/src/node_crypto.cc
-@@ -3476,7 +3476,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
-           is_public = false;
-           break;
-         default:
--          UNREACHABLE("Invalid key encoding type");
-+          CHECK(false);
-       }
- 
-       if (is_public) {