[BASE] Removed dead code (#10330)

This commit is contained in:
mosfet80
2023-08-28 17:41:20 +02:00
committed by GitHub
parent 4adbc90c99
commit cb607ffe1e
14 changed files with 9 additions and 175 deletions

View File

@@ -34,12 +34,7 @@ using namespace Base;
std::string QuantityPy::representation() const
{
std::stringstream ret;
#if 0
//ret.precision(getQuantityPtr()->getFormat().precision);
//ret.setf(std::ios::fixed, std::ios::floatfield);
ret << getQuantityPtr()->getValue() << " ";
ret << getQuantityPtr()->getUnit().getString().toUtf8().constData();
#else
double val= getQuantityPtr()->getValue();
Unit unit = getQuantityPtr()->getUnit();
@@ -48,7 +43,6 @@ std::string QuantityPy::representation() const
ret << static_cast<std::string>(flt.repr());
if (!unit.isEmpty())
ret << " " << unit.getString().toUtf8().constData();
#endif
return ret.str();
}