UI restructure: remove the backupDive we no longer need

Since we have a dedicated dive that we use to display things, we can
simply get the information from the current dive and use it to setup said
displayed_dive.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-07-06 12:56:37 -07:00
parent cd5b2a372f
commit 3d511fe26b
2 changed files with 4 additions and 23 deletions

View file

@ -83,7 +83,6 @@ slots:
void createTemporaryPlan();
void deleteTemporaryPlan();
void loadFromDive(dive *d);
void restoreBackupDive();
void emitDataChanged();
signals:
@ -99,7 +98,6 @@ private:
Mode mode;
bool recalc;
QVector<divedatapoint> divepoints;
struct dive backupDive;
void deleteTemporaryPlan(struct divedatapoint *dp);
QVector<sample> backupSamples; // For editing added dives.
QVector<QPair<int, int> > oldGases;