aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-20 11:03:14 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-10 16:45:42 +0100
commit1d7fc930177059b62178ebdf8a4d855c3b757e6b (patch)
tree9ca6f4755985d59820ac95f2bdf130033f92bf05 /qt-models
parenta88c9507387452a3152aa21f8766a568c1542b86 (diff)
downloadsubsurface-1d7fc930177059b62178ebdf8a4d855c3b757e6b.tar.gz
Unused code: remove CCRMax() and used macro
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplotdatamodel.cpp14
-rw-r--r--qt-models/diveplotdatamodel.h1
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();