diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-07-16 06:50:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-07-16 06:50:50 +0200 |
commit | e78dc4e0f77d21a1fc8379e5e8a09f4723522e36 (patch) | |
tree | f390415c3923067ac0942c081de59ce9eeb4efb7 /qfunctionconfigurator | |
parent | 1ac0f1ade4242ae39293f19c8dcb84847970732d (diff) |
Remove dead code
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 8 | ||||
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.h | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 7c59d98e..304d252e 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -86,7 +86,6 @@ QFunctionConfigurator::QFunctionConfigurator(QWidget *parent) // _config = 0; _points = QList<QPointF>(); - _draw_points = QList<QPointF>(); _draw_background = true; _draw_function = true; @@ -113,7 +112,6 @@ qreal x; // Get the Function Points, one for each pixel in the horizontal range. // If the curve does not change, there is no need to run this code every time (it slows down drawing). // - _draw_points.clear(); for (int j = 0; j < MaxInput * pPerEGU_Input; j++) { // // Weird: not casting to float causes C++ to round the number... @@ -122,10 +120,10 @@ qreal x; currentPoint.setX ( x ); currentPoint.setY (_config->getValue( x )); drawPoint = graphicalizePoint(currentPoint, "setConfig"); - if (withinRect(drawPoint, range)) { - _draw_points.append(drawPoint); + //if (withinRect(drawPoint, range)) { + //_draw_points.append(drawPoint); // qDebug() << "QFunctionConfigurator::setConfig _draw_Point to add = " << drawPoint; - } + //} } _draw_function = true; diff --git a/qfunctionconfigurator/qfunctionconfigurator.h b/qfunctionconfigurator/qfunctionconfigurator.h index 4bb81ed9..963f6b13 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.h +++ b/qfunctionconfigurator/qfunctionconfigurator.h @@ -198,7 +198,6 @@ private: QString _title; // Title do display in Widget and to load Settings FunctionConfig* _config; QList<QPointF> _points; // Function-points - QList<QPointF> _draw_points; // Curve-points needed for drawing }; #endif // QFUNCTIONCONFIGURATOR_H |