[BASE] Removed dead code (#10330)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user