diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-26 13:47:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-26 20:48:57 +0200 |
commit | 205c47443ea43341cacec52acbe53a470f41acc6 (patch) | |
tree | 5a9cf627ccb86c6d52250f041542d4fcddc83d73 /vcl/source/control/wizardmachine.cxx | |
parent | 3f820a5638b84bd66c9a58172f1c812b54e6f9da (diff) |
loplugin:unusedmethods
Change-Id: I9d1abe62e7e0ae3434e0b2d440d6ccf0435e97cc
Reviewed-on: https://gerrit.libreoffice.org/78131
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/wizardmachine.cxx')
-rw-r--r-- | vcl/source/control/wizardmachine.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vcl/source/control/wizardmachine.cxx b/vcl/source/control/wizardmachine.cxx index 8082df6ab39a..49dc3b47e6ec 100644 --- a/vcl/source/control/wizardmachine.cxx +++ b/vcl/source/control/wizardmachine.cxx @@ -992,39 +992,6 @@ namespace vcl } - void WizardMachine::skip() - { - // allowed to leave the current page? - if ( !prepareLeaveCurrentState( eTravelForward ) ) - return; - - WizardState nCurrentState = getCurrentState(); - WizardState nNextState = determineNextState(nCurrentState); - - if (WZS_INVALID_STATE == nNextState) - return; - - // remember the skipped state in the history - m_pImpl->aStateHistory.push(nCurrentState); - - // get the next state - nCurrentState = nNextState; - - // show the (n+1)th page - if (!ShowPage(nCurrentState)) - { - // TODO: this leaves us in a state where we have no current page and an inconsistent state history. - // Perhaps we should rollback the skipping here .... - OSL_FAIL("WizardMachine::skip: very unpolite ...."); - // if somebody does a skip and then does not allow to leave ... - // (can't be a commit error, as we've already committed the current page. So if ShowPage fails here, - // somebody behaves really strange ...) - return; - } - - // all fine - } - bool WizardMachine::travelNext() { // allowed to leave the current page? |