add StartupFSM::end() (empty for now) and remove unused states

This commit is contained in:
Paul Davis 2019-10-10 15:22:44 -06:00
parent 448e4de8d9
commit 85d81cb6b8
2 changed files with 10 additions and 9 deletions

View File

@ -103,6 +103,13 @@ StartupFSM::start ()
}
}
void
StartupFSM::end()
{
}
void
StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_id)
{
@ -241,12 +248,7 @@ StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_i
}
case NeedWizard:
break;
case NeedSessionSR:
break;
case NeedEngine:
/* ERROR */
break;
}
}

View File

@ -48,6 +48,7 @@ class StartupFSM : public sigc::trackable
~StartupFSM ();
void start ();
void end ();
std::string session_path;
std::string session_name;
@ -63,14 +64,12 @@ class StartupFSM : public sigc::trackable
sigc::signal1<void,Result>& signal_response() { return _signal_response; }
bool brand_new_user() const { return new_user; }
private:
enum MainState {
NeedWizard,
NeedSessionPath,
NeedSessionSR,
NeedEngineParams,
NeedEngine
};
bool new_user;