Remove some unused code

This commit is contained in:
Lukas Matena 2024-06-14 15:52:13 +02:00
parent caa437773a
commit 9f68224c45
2 changed files with 0 additions and 6 deletions

View File

@ -45,8 +45,6 @@ namespace fs = boost::filesystem;
namespace Slic3r {
namespace GUI {
wxDEFINE_EVENT(EVT_UA_NO_TOKENS, UserAccountFailEvent);
namespace {
@ -156,9 +154,6 @@ UserAccountCommunication::UserAccountCommunication(wxEvtHandler* evt_handler, Ap
// perform login at the start, but only with tokens
if (has_token) {
do_login();
} else {
// send evt so preset archive database knows it can sync
wxQueueEvent(evt_handler, new UserAccountFailEvent(EVT_UA_NO_TOKENS, {}));
}
}

View File

@ -27,7 +27,6 @@ wxDECLARE_EVENT(EVT_UA_PRUSACONNECT_PRINTER_DATA_SUCCESS, UserAccountSuccessEven
wxDECLARE_EVENT(EVT_UA_FAIL, UserAccountFailEvent); // Soft fail - clears only after some number of fails
wxDECLARE_EVENT(EVT_UA_RESET, UserAccountFailEvent); // Hard fail - clears all
wxDECLARE_EVENT(EVT_UA_PRUSACONNECT_PRINTER_DATA_FAIL, UserAccountFailEvent); // Failed to get data for printer to select, soft fail, action does not repeat
wxDECLARE_EVENT(EVT_UA_NO_TOKENS, UserAccountFailEvent); // when login wont be performed on startup
typedef std::function<void(const std::string& body)> UserActionSuccessFn;