Remove unused member.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 23 Feb 2012 00:12:52 +0000 (10:12 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sun, 26 Feb 2012 23:12:08 +0000 (00:12 +0100)
Change-Id: Ibfcc7a78e442c2be5bab6933e2e85ed39344e6c2
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/quick/scenegraph/qsgcontext.cpp
src/quick/scenegraph/qsgdefaultrectanglenode.cpp
src/quick/scenegraph/qsgdefaultrectanglenode_p.h

index 03afed2..8772781 100644 (file)
@@ -238,7 +238,7 @@ void QSGContext::renderNextFrame(QSGRenderer *renderer, GLuint fboId)
  */
 QSGRectangleNode *QSGContext::createRectangleNode()
 {
-    return new QSGDefaultRectangleNode(this);
+    return new QSGDefaultRectangleNode;
 }
 
 /*!
index cb385f6..3d15f69 100644 (file)
@@ -54,7 +54,7 @@
 
 QT_BEGIN_NAMESPACE
 
-QSGDefaultRectangleNode::QSGDefaultRectangleNode(QSGContext *context)
+QSGDefaultRectangleNode::QSGDefaultRectangleNode()
     : m_border(0)
     , m_radius(0)
     , m_pen_width(0)
@@ -62,7 +62,6 @@ QSGDefaultRectangleNode::QSGDefaultRectangleNode(QSGContext *context)
     , m_gradient_is_opaque(true)
     , m_dirty_geometry(false)
     , m_default_geometry(QSGGeometry::defaultAttributes_Point2D(), 4)
-    , m_context(context)
 {
     setGeometry(&m_default_geometry);
     setMaterial(&m_fill_material);
index 49ca377..a5e43f8 100644 (file)
@@ -57,7 +57,7 @@ class QSGContext;
 class QSGDefaultRectangleNode : public QSGRectangleNode
 {
 public:
-    QSGDefaultRectangleNode(QSGContext *context);
+    QSGDefaultRectangleNode();
     ~QSGDefaultRectangleNode();
 
     virtual void setRect(const QRectF &rect);
@@ -95,8 +95,6 @@ private:
     uint m_material_type : 2; // Only goes up to 3
 
     QSGGeometry m_default_geometry;
-
-    QSGContext *m_context;
 };
 
 QT_END_NAMESPACE