mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Planner: remove pointless code
This never made any sense. If we have NO datapoints then go and cancel the plan? And anyway, we already check this higher up in the call stack. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b36f8dd738
commit
8cbf207169
1 changed files with 0 additions and 3 deletions
|
@ -874,9 +874,6 @@ void DivePlannerPointsModel::createPlan()
|
|||
char *cache = NULL;
|
||||
tempDive = NULL;
|
||||
|
||||
if (!diveplan.dp)
|
||||
return cancelPlan();
|
||||
|
||||
bool oldRecalc = plannerModel->setRecalc(false);
|
||||
removeDeco();
|
||||
createTemporaryPlan();
|
||||
|
|
Loading…
Reference in a new issue