From 8cbf2071693f06a2fe25c6ae322c3131302dd2bf Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 30 May 2014 11:02:17 -0700 Subject: 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 --- qt-ui/diveplanner.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 2b1662f7d..d11b89617 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -874,9 +874,6 @@ void DivePlannerPointsModel::createPlan() char *cache = NULL; tempDive = NULL; - if (!diveplan.dp) - return cancelPlan(); - bool oldRecalc = plannerModel->setRecalc(false); removeDeco(); createTemporaryPlan(); -- cgit v1.2.3-70-g09d2