cleanups of commented code

This commit is contained in:
2025-10-29 16:15:58 +03:00
parent bc300bb3de
commit 6a72ead855
7 changed files with 12 additions and 1094 deletions

View File

@@ -14,13 +14,13 @@ Asibfm700MountNetServer::Asibfm700MountNetServer(asio::io_context& ctx,
// to avoid possible compiler optimization (one needs to catch 'mount' strictly by reference)
auto* mount_ptr = &mount;
base_t::_handleMessageFunc = [base_hndl_func = std::move(base_t::_handleMessageFunc), mount_ptr,
this](std::string_view command) {
base_t::_handleMessageFunc = [mount_ptr, this](std::string_view command) {
using mount_error_t = typename Asibfm700Mount::error_t;
std::error_code err{};
Asibfm700NetMessage input_msg;
Asibfm700NetMessage<handle_message_func_result_t> output_msg;
using output_msg_t = Asibfm700NetMessage<handle_message_func_result_t>;
output_msg_t output_msg;
auto ec = parseMessage(command, input_msg);
@@ -41,7 +41,8 @@ Asibfm700MountNetServer::Asibfm700MountNetServer(asio::io_context& ctx,
ASIBFM700_COMMPROTO_KEYWORD_METEO_STR, mount_ptr->getStateERFA().meteo);
}
} else {
output_msg = base_t::handleMessage<decltype(output_msg)>(input_msg, mount_ptr);
// basic network message processing
output_msg = base_t::handleMessage<output_msg_t>(input_msg, mount_ptr);
}
}