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:
Dirk Hohndel 2014-05-30 11:02:17 -07:00
parent b36f8dd738
commit 8cbf207169

View file

@ -874,9 +874,6 @@ void DivePlannerPointsModel::createPlan()
char *cache = NULL;
tempDive = NULL;
if (!diveplan.dp)
return cancelPlan();
bool oldRecalc = plannerModel->setRecalc(false);
removeDeco();
createTemporaryPlan();