diff options
-rw-r--r-- | qt-models/diveplotdatamodel.cpp | 14 | ||||
-rw-r--r-- | qt-models/diveplotdatamodel.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp index 3024543a0..922cf349c 100644 --- a/qt-models/diveplotdatamodel.cpp +++ b/qt-models/diveplotdatamodel.cpp @@ -206,23 +206,9 @@ unsigned int DivePlotDataModel::dcShown() const return ret; \ } -#define MAX_SENSOR_GAS_FUNC(GASFUNC) \ - double DivePlotDataModel::GASFUNC() /* CCR: This function finds the largest measured po2 value */ \ - { /* by scanning the readings from the three individual o2 sensors. */ \ - double ret = -1; /* This is used for scaling the Y-axis for partial pressures */ \ - for (int s = 0; s < 3; s++) { /* when displaying the graphs for individual o2 sensors */ \ - for (int i = 0, count = rowCount(); i < count; i++) { /* POTENTIAL PROBLEM: the '3' (no_sensors) is hard-coded here */\ - if (pInfo.entry[i].o2sensor[s].mbar > ret) \ - ret = pInfo.entry[i].o2sensor[s].mbar; \ - } \ - } \ - return (ret / 1000.0); /* mbar -> bar conversion */ \ - } - MAX_PPGAS_FUNC(he, pheMax); MAX_PPGAS_FUNC(n2, pn2Max); MAX_PPGAS_FUNC(o2, po2Max); -MAX_SENSOR_GAS_FUNC(CCRMax); void DivePlotDataModel::emitDataChanged() { diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h index 4e0c63c2e..3316b442c 100644 --- a/qt-models/diveplotdatamodel.h +++ b/qt-models/diveplotdatamodel.h @@ -82,7 +82,6 @@ public: double pheMax(); double pn2Max(); double po2Max(); - double CCRMax(); void emitDataChanged(); #ifndef SUBSURFACE_MOBILE void calculateDecompression(); |