Skip to content

Commit

Permalink
Remove [w]ire command option (unused).
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed May 15, 2024
1 parent 40ba740 commit 44da0ff
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions console/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ const std::unordered_map<std::string, uint8_t> executor::toggles_
{ "s", levels::session },
{ "p", levels::protocol },
{ "x", levels::proxy },
{ "w", levels::wire },
{ "r", levels::remote },
{ "f", levels::fault },
{ "q", levels::quit },
Expand All @@ -103,7 +102,6 @@ const std::unordered_map<uint8_t, std::string> executor::display_
{ levels::session, "[s]ession" },
{ levels::protocol, "[p]rotocol" },
{ levels::proxy, "pro[x]y" },
{ levels::wire, "[w]ire" }, // unused
{ levels::remote, "[r]emote" },
{ levels::fault, "[f]ault" },
{ levels::quit, "[q]uitting" },
Expand All @@ -117,7 +115,6 @@ const std::unordered_map<uint8_t, bool> executor::defined_
{ levels::session, levels::session_defined },
{ levels::protocol, levels::protocol_defined },
{ levels::proxy, levels::proxy_defined },
{ levels::wire, levels::wire_defined },
{ levels::remote, levels::remote_defined },
{ levels::fault, levels::fault_defined },
{ levels::quit, levels::quit_defined },
Expand Down Expand Up @@ -170,7 +167,6 @@ executor::executor(parser& metadata, std::istream& input, std::ostream& output,
metadata.configured.log.session,
metadata.configured.log.protocol,
metadata.configured.log.proxy,
metadata.configured.log.wire,
metadata.configured.log.remote,
metadata.configured.log.fault,
metadata.configured.log.quit,
Expand Down Expand Up @@ -2521,7 +2517,6 @@ void executor::dump_options() const
logger(format("Session...... " BN_LOG_TABLE) % levels::session_defined % toggle_.at(levels::session));
logger(format("Protocol..... " BN_LOG_TABLE) % levels::protocol_defined % toggle_.at(levels::protocol));
logger(format("ProXy........ " BN_LOG_TABLE) % levels::proxy_defined % toggle_.at(levels::proxy));
logger(format("Wire......... " BN_LOG_TABLE) % levels::wire_defined % toggle_.at(levels::wire));
logger(format("Remote....... " BN_LOG_TABLE) % levels::remote_defined % toggle_.at(levels::remote));
logger(format("Fault........ " BN_LOG_TABLE) % levels::fault_defined % toggle_.at(levels::fault));
logger(format("Quit......... " BN_LOG_TABLE) % levels::quit_defined % toggle_.at(levels::quit));
Expand Down
1 change: 0 additions & 1 deletion include/bitcoin/node/settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class BCN_API settings
bool session;
bool protocol;
bool proxy;
bool wire;
bool remote;
bool fault;
bool quit;
Expand Down
7 changes: 0 additions & 7 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,13 +971,6 @@ options_metadata parser::load_settings() THROWS
"Enable proxy logging, defaults to false."
)
#endif
#if defined(HAVE_LOGW)
(
"log.wire",
value<bool>(&configured.log.wire),
"Enable wire communication logging, defaults to false."
)
#endif
#if defined(HAVE_LOGR)
(
"log.remote",
Expand Down
1 change: 0 additions & 1 deletion src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ settings::settings() NOEXCEPT
session{ levels::session_defined },
protocol{ false /*levels::protocol_defined*/ },
proxy{ false /*levels::proxy_defined*/ },
wire{ false /*levels::wire_defined*/ },
remote{ levels::remote_defined },
fault{ levels::fault_defined },
quit{ false /*levels::quit_defined*/ },
Expand Down
1 change: 0 additions & 1 deletion test/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ BOOST_AUTO_TEST_CASE(configuration__construct1__none_context__expected)
BOOST_REQUIRE_EQUAL(instance.log.session, levels::session_defined);
BOOST_REQUIRE_EQUAL(instance.log.protocol, false /*levels::protocol_defined*/);
BOOST_REQUIRE_EQUAL(instance.log.proxy, false /*levels::proxy_defined*/);
BOOST_REQUIRE_EQUAL(instance.log.wire, false /*levels::wire_defined*/);
BOOST_REQUIRE_EQUAL(instance.log.remote, levels::remote_defined);
BOOST_REQUIRE_EQUAL(instance.log.fault, levels::fault_defined);
BOOST_REQUIRE_EQUAL(instance.log.quit, false /*levels::quit_defined*/);
Expand Down
1 change: 0 additions & 1 deletion test/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ BOOST_AUTO_TEST_CASE(settings__log__default_context__expected)
BOOST_REQUIRE_EQUAL(log.session, levels::session_defined);
BOOST_REQUIRE_EQUAL(log.protocol, false /*levels::protocol_defined*/);
BOOST_REQUIRE_EQUAL(log.proxy, false /*levels::proxy_defined*/);
BOOST_REQUIRE_EQUAL(log.wire, false /*levels::wire_defined*/);
BOOST_REQUIRE_EQUAL(log.remote, levels::remote_defined);
BOOST_REQUIRE_EQUAL(log.fault, levels::fault_defined);
BOOST_REQUIRE_EQUAL(log.quit, false /*levels::quit_defined*/);
Expand Down

0 comments on commit 44da0ff

Please sign in to comment.