diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-15 15:43:06 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 13:03:56 -0800 |
commit | cc5ebd741486c3231b50974959de2f5d842b8fa5 (patch) | |
tree | 8ef11506ff3f65956bc32025c8cf6438305ea822 /core/subsurface-qt/cylinderobjecthelper.cpp | |
parent | ae182c386b0b1b58ab25fc1fbc18c3618062e57f (diff) | |
download | subsurface-cc5ebd741486c3231b50974959de2f5d842b8fa5.tar.gz |
printing: remove CylinderObjectHelper
With the removal of grantlee, this became pointless glue
code. Call the formatting functions directly.
Since the printing code was the only user of CylinderObjectHelper,
remove the whole thing.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt/cylinderobjecthelper.cpp')
-rw-r--r-- | core/subsurface-qt/cylinderobjecthelper.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/core/subsurface-qt/cylinderobjecthelper.cpp b/core/subsurface-qt/cylinderobjecthelper.cpp deleted file mode 100644 index 897746952..000000000 --- a/core/subsurface-qt/cylinderobjecthelper.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include "cylinderobjecthelper.h" -#include "../qthelper.h" - -static QString EMPTY_CYLINDER_STRING = QStringLiteral(""); -CylinderObjectHelper::CylinderObjectHelper(const cylinder_t *cylinder) -{ - if (!cylinder) - return; - - description = cylinder->type.description ? cylinder->type.description: - EMPTY_CYLINDER_STRING; - size = get_volume_string(cylinder->type.size, true); - workingPressure = get_pressure_string(cylinder->type.workingpressure, true); - startPressure = get_pressure_string(cylinder->start, true); - endPressure = get_pressure_string(cylinder->end, true); - gasMix = get_gas_string(cylinder->gasmix); -} |