summaryrefslogtreecommitdiff
path: root/vcl/source/control/wizardmachine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/wizardmachine.cxx')
-rw-r--r--vcl/source/control/wizardmachine.cxx33
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?