diff --git a/src/common/run_command.cpp b/src/common/run_command.cpp index 8c57e53bf11..b4e81c40d33 100644 --- a/src/common/run_command.cpp +++ b/src/common/run_command.cpp @@ -2,17 +2,12 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include // IWYU pragma: keep - #include #include #include #include - -#ifdef ENABLE_EXTERNAL_SIGNER #include -#endif // ENABLE_EXTERNAL_SIGNER #include #include @@ -20,7 +15,6 @@ UniValue RunCommandParseJSON(const std::vector& cmd_args, const std::string& str_std_in) { -#ifdef ENABLE_EXTERNAL_SIGNER namespace sp = subprocess; UniValue result_json; @@ -47,7 +41,4 @@ UniValue RunCommandParseJSON(const std::vector& cmd_args, const std if (!result_json.read(result)) throw std::runtime_error("Unable to parse JSON: " + result); return result_json; -#else - throw std::runtime_error("Compiled without external signing support (required for external signing)."); -#endif // ENABLE_EXTERNAL_SIGNER } diff --git a/src/test/system_tests.cpp b/src/test/system_tests.cpp index 1b1d6bc75e0..0a6711fb024 100644 --- a/src/test/system_tests.cpp +++ b/src/test/system_tests.cpp @@ -3,8 +3,6 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. // -#include // IWYU pragma: keep - #include #include #include @@ -15,9 +13,7 @@ #include #include -#ifdef ENABLE_EXTERNAL_SIGNER #include -#endif // ENABLE_EXTERNAL_SIGNER #include @@ -60,8 +56,6 @@ const bool g_maybe_run_mock_dispatcher_before_main{[]() { BOOST_FIXTURE_TEST_SUITE(system_tests, BasicTestingSetup) -#ifdef ENABLE_EXTERNAL_SIGNER - static std::vector mock_executable(const std::string& name) { #if defined(WIN32) @@ -127,6 +121,5 @@ BOOST_AUTO_TEST_CASE(run_command) BOOST_CHECK_EQUAL(success.get_bool(), true); } } -#endif // ENABLE_EXTERNAL_SIGNER BOOST_AUTO_TEST_SUITE_END()