summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-07-16 06:50:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-07-16 06:50:50 +0200
commite78dc4e0f77d21a1fc8379e5e8a09f4723522e36 (patch)
treef390415c3923067ac0942c081de59ce9eeb4efb7 /qfunctionconfigurator/qfunctionconfigurator.cpp
parent1ac0f1ade4242ae39293f19c8dcb84847970732d (diff)
Remove dead code
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp8
1 files changed, 3 insertions, 5 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;