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
@ -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…
x
Reference in New Issue
Block a user