diff options
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index e319b61e..27f3bf40 100644 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -75,18 +75,6 @@ static bool sortFn(const QPointF& one, const QPointF& two) { return one.x() < two.x(); } -static inline bool nanp(double value) -{ - return std::isnan(value) || std::isinf(value); -} - -static inline double elide_nan(double value) -{ - if (nanp(value)) - return -1; - return value; -} - void Map::reload() { if (cur.input.size()) { @@ -144,7 +132,7 @@ void Map::reload() { (-p0_y + 3. * p1_y - 3. * p2_y + p3_y) * t3); if (x >= 0 && x < sz) - data[x] = elide_nan(y); + data[x] = y; } } |