From 1bb4c3264bbdca7fd45846a1dee8847270eddda2 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 22 Dec 2014 22:39:36 +0000 Subject: [PATCH] Clean unneeded refs to metricDB .. starting to sunset the code now. Need to sort the sqlModel for the ridecache and then it can be retired completely. --- src/LTMWindow.cpp | 2 +- src/RideMetadata.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/LTMWindow.cpp b/src/LTMWindow.cpp index ee6aec184..9734e2c31 100644 --- a/src/LTMWindow.cpp +++ b/src/LTMWindow.cpp @@ -658,7 +658,7 @@ LTMWindow::filterChanged() // ignore in compare mode if (isCompare()) return; - if (amVisible() == false || context->athlete->metricDB == NULL) return; + if (amVisible() == false) return; if (useCustom) { diff --git a/src/RideMetadata.cpp b/src/RideMetadata.cpp index 7fb6d1df4..11150b668 100644 --- a/src/RideMetadata.cpp +++ b/src/RideMetadata.cpp @@ -1070,8 +1070,7 @@ RideMetadata::readXML(QString filename, QList&keywordDefiniti // now auto append special fields, in case // the user wiped them or we have introduced - // them in this release. This is to ensure - // they get written to metricDB + // them in this release. bool hasCalendarText = false; bool hasData = false;