Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code (hot version). #626

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions console/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const std::unordered_map<std::string, uint8_t> executor::options_
{ "i", menu::info },
{ "m", menu::menu_ },
{ "t", menu::test },
{ "v", menu::version },
{ "w", menu::work },
{ "z", menu::zeroize }
};
Expand All @@ -82,7 +81,6 @@ const std::unordered_map<uint8_t, std::string> executor::options_menu_
{ menu::info, "[i]nfo about store" },
{ menu::menu_, "[m]enu of options and toggles" },
{ menu::test, "[t]est built-in case" },
{ menu::version, "[v]ersion information" },
{ menu::work, "[w]ork distribution" },
{ menu::zeroize, "[z]eroize disk full error" }
};
Expand Down Expand Up @@ -2301,12 +2299,6 @@ void executor::do_test() const
read_test();
}

// [v]ersion
void executor::do_hot_version()
{
dump_version();
}

// [w]ork
void executor::do_report_work()
{
Expand Down Expand Up @@ -2590,11 +2582,6 @@ void executor::subscribe_capture()
do_test();
return true;
}
case menu::version:
{
do_hot_version();
return true;
}
case menu::work:
{
do_report_work();
Expand Down Expand Up @@ -2673,6 +2660,7 @@ bool executor::do_run()

// Stopped by stopper.
capture_.start();
dump_version();
dump_options();

// Create node.
Expand Down
2 changes: 0 additions & 2 deletions console/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class executor
info,
menu_,
test,
version,
work,
zeroize
};
Expand Down Expand Up @@ -109,7 +108,6 @@ class executor

// Runtime options.
void do_hot_backup();
void do_hot_version();
void do_close();
void do_suspend();
void do_resume();
Expand Down
Loading