[gegl-qt] Remove unneccesary qDebug() statements and unused variables.



commit 27c4dd281729552d0a440f3abe7e9c9edcade77c
Author: Jon Nordby <jononor gmail com>
Date:   Tue Aug 2 00:12:46 2011 +0200

    Remove unneccesary qDebug() statements and unused variables.

 examples/qml-paint/qml-paint.cpp     |    6 ------
 gegl-qt/geglqtdeclarativeview.cpp    |    8 +-------
 gegl-qt/geglqtgraphicswidgetview.cpp |    8 +-------
 gegl-qt/geglqtview.cpp               |    4 ----
 gegl-qt/geglqtviewimplementation.cpp |    2 --
 5 files changed, 2 insertions(+), 26 deletions(-)
---
diff --git a/examples/qml-paint/qml-paint.cpp b/examples/qml-paint/qml-paint.cpp
index 283f056..bba908a 100644
--- a/examples/qml-paint/qml-paint.cpp
+++ b/examples/qml-paint/qml-paint.cpp
@@ -26,8 +26,6 @@
 
 int main(int argc, char *argv[])
 {
-    GeglNode *graph, *node;
-
     QApplication a(argc, argv);
     gegl_init(&argc, &argv);
     Q_INIT_RESOURCE(qmlpaint);
@@ -35,7 +33,6 @@ int main(int argc, char *argv[])
     // Does all the GEGL graph stuff
     PaintEngine paintEngine;
 
-    qDebug() << "PaintEngine created";
     // TODO: Create an QDeclarativeExtensionPlugin which does this?
     qmlRegisterType<GeglQtDeclarativeView>("GeglQt", 0, 1, "GeglQtView");
 
@@ -45,10 +42,7 @@ int main(int argc, char *argv[])
     view.setSource(QUrl("qrc:/qml-paint.qml"));
     view.show();
 
-    qDebug() << "Executing application";
     int retCode = a.exec();
-
-    g_object_unref(graph);
     gegl_exit();
     return retCode;
 }
diff --git a/gegl-qt/geglqtdeclarativeview.cpp b/gegl-qt/geglqtdeclarativeview.cpp
index c61bbae..cc0afe1 100644
--- a/gegl-qt/geglqtdeclarativeview.cpp
+++ b/gegl-qt/geglqtdeclarativeview.cpp
@@ -21,7 +21,6 @@ GeglQtDeclarativeView::~GeglQtDeclarativeView()
 void
 GeglQtDeclarativeView::setInputNode(QVariant node)
 {
-    qDebug() << __PRETTY_FUNCTION__;
     if (node.isValid()) {
         GeglNode *gegl_node = static_cast<GeglNode*>(node.value<void*>());
         priv->setInputNode(gegl_node);
@@ -44,8 +43,6 @@ GeglQtDeclarativeView::options() const
 void
 GeglQtDeclarativeView::invalidate(QRectF rect)
 {
-    qDebug() << __PRETTY_FUNCTION__ << rect;
-
     if (rect.isValid()) {
         update(rect);
     } else {
@@ -67,10 +64,7 @@ GeglQtDeclarativeView::paint(QPainter *painter,
                              QWidget *widget)
 {
     Q_UNUSED(widget);
-    QRectF rect(option->exposedRect);
-
-    qDebug() << __PRETTY_FUNCTION__ << rect;
-    priv->paint(painter, rect);
+    priv->paint(painter, option->exposedRect);
 }
 
 void
diff --git a/gegl-qt/geglqtgraphicswidgetview.cpp b/gegl-qt/geglqtgraphicswidgetview.cpp
index c30d736..d8ee9b7 100644
--- a/gegl-qt/geglqtgraphicswidgetview.cpp
+++ b/gegl-qt/geglqtgraphicswidgetview.cpp
@@ -41,7 +41,6 @@ GeglQtGraphicsWidgetView::~GeglQtGraphicsWidgetView()
 void
 GeglQtGraphicsWidgetView::setInputNode(GeglNode *node)
 {
-    qDebug() << __PRETTY_FUNCTION__;
     priv->setInputNode(node);
 }
 
@@ -60,8 +59,6 @@ GeglQtGraphicsWidgetView::options() const
 void
 GeglQtGraphicsWidgetView::invalidate(QRectF rect)
 {
-    qDebug() << __PRETTY_FUNCTION__ << rect;
-
     if (rect.isValid()) {
         update(rect);
     } else {
@@ -81,10 +78,7 @@ GeglQtGraphicsWidgetView::paint(QPainter *painter,
                                 QWidget *widget)
 {
     Q_UNUSED(widget);
-    QRectF rect(option->exposedRect);
-
-    qDebug() << __PRETTY_FUNCTION__ << rect;
-    priv->paint(painter, rect);
+    priv->paint(painter, option->exposedRect);
 }
 
 void
diff --git a/gegl-qt/geglqtview.cpp b/gegl-qt/geglqtview.cpp
index 1fbbadc..d1f345f 100644
--- a/gegl-qt/geglqtview.cpp
+++ b/gegl-qt/geglqtview.cpp
@@ -69,8 +69,6 @@ GeglQtView::options() const
 void
 GeglQtView::invalidate(QRectF rect)
 {
-    qDebug() << __PRETTY_FUNCTION__ << rect;
-
     if (rect.isValid()) {
         update(rect.toRect());
     } else {
@@ -88,8 +86,6 @@ GeglQtView::viewportSizeChangeRequested(QSizeF requestedSize)
 void
 GeglQtView::paintEvent(QPaintEvent *event)
 {
-    qDebug() << __PRETTY_FUNCTION__ << event->rect();
-
     QPainter painter(this);
     priv->paint(&painter, QRectF(event->rect()));
 }
diff --git a/gegl-qt/geglqtviewimplementation.cpp b/gegl-qt/geglqtviewimplementation.cpp
index 7dc6dde..0eb8d13 100644
--- a/gegl-qt/geglqtviewimplementation.cpp
+++ b/gegl-qt/geglqtviewimplementation.cpp
@@ -238,7 +238,6 @@ GeglQtViewImplementation::viewportSizeChanged(QSizeF newSize)
 void
 GeglQtViewImplementation::nodeInvalidated(GeglRectangle *rect)
 {
-    qDebug() << __PRETTY_FUNCTION__ << rect;
     if (!mInputNode) {
         return;
     }
@@ -256,7 +255,6 @@ GeglQtViewImplementation::nodeInvalidated(GeglRectangle *rect)
 void
 GeglQtViewImplementation::processNode()
 {
-    qDebug() << __PRETTY_FUNCTION__;
     if (!processor) {
         return;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]