Removed some unused EditorUtils functions

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2022-01-13 10:28:58 -06:00
parent fed1278fe6
commit 3f0bd92853
3 changed files with 0 additions and 199 deletions
-17
View File
@@ -176,23 +176,6 @@ QString TrimTrailingZeros(QString str)
return str;
}
//////////////////////////////////////////////////////////////////////////
// This function is supposed to format float in user-friendly way,
// omitting the exponent notation.
//
// Why not using printf? Its formatting rules has following drawbacks:
// %g - will use exponent for small numbers;
// %.Nf - doesn't allow to control total amount of significant numbers,
// which exposes limited precision during binary-to-decimal fraction
// conversion.
//////////////////////////////////////////////////////////////////////////
void FormatFloatForUI(QString& str, int significantDigits, double value)
{
str = TrimTrailingZeros(QString::number(value, 'f', significantDigits));
return;
}
//////////////////////////////////////////////////////////////////////////-
//////////////////////////////////////////////////////////////////////////
QColor ColorLinearToGamma(ColorF col)
{