From 94dbcc83cea66e9fe8eb22697c3fbf3a17254eb0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 16 Jul 2020 23:22:08 +0200 Subject: [PATCH] PVS: V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. --- src/Base/UnitsSchemaMKS.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Base/UnitsSchemaMKS.cpp b/src/Base/UnitsSchemaMKS.cpp index 55bfabbca1..e3b3a9ff60 100644 --- a/src/Base/UnitsSchemaMKS.cpp +++ b/src/Base/UnitsSchemaMKS.cpp @@ -143,20 +143,6 @@ QString UnitsSchemaMKS::schemaTranslate(const Quantity &quant, double &factor, Q factor = 1.0; } } - else if (unit == Unit::Volume) { - if (UnitValue < 1000000.0) {// smaller than 10 cubic cm - unitString = QString::fromLatin1("mm^3"); - factor = 1.0; - } - else if (UnitValue < 1000000000000000000.0) { - unitString = QString::fromLatin1("m^3"); - factor = 1000000000.0; - } - else { // bigger then 1 cubic kilometer - unitString = QString::fromLatin1("km^3"); - factor = 1000000000000000000.0; - } - } else if (unit == Unit::Acceleration) { unitString = QString::fromLatin1("m/s^2"); factor = 1000.0;