aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2012-02-23 10:12:52 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-27 00:12:08 +0100
commit86b14cf97081cad1e32b8b5261f771184300f8af (patch)
treea1a920b7f49e8f19b7dbf1350c5abafbfb11c1ee /src
parent316ede158401c0e939cae817388a67b3303ac59d (diff)
Remove unused member.
Change-Id: Ibfcc7a78e442c2be5bab6933e2e85ed39344e6c2 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp2
-rw-r--r--src/quick/scenegraph/qsgdefaultrectanglenode.cpp3
-rw-r--r--src/quick/scenegraph/qsgdefaultrectanglenode_p.h4
3 files changed, 3 insertions, 6 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 03afed293a..877278116f 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -238,7 +238,7 @@ void QSGContext::renderNextFrame(QSGRenderer *renderer, GLuint fboId)
*/
QSGRectangleNode *QSGContext::createRectangleNode()
{
- return new QSGDefaultRectangleNode(this);
+ return new QSGDefaultRectangleNode;
}
/*!
diff --git a/src/quick/scenegraph/qsgdefaultrectanglenode.cpp b/src/quick/scenegraph/qsgdefaultrectanglenode.cpp
index cb385f6dd0..3d15f6944d 100644
--- a/src/quick/scenegraph/qsgdefaultrectanglenode.cpp
+++ b/src/quick/scenegraph/qsgdefaultrectanglenode.cpp
@@ -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);
diff --git a/src/quick/scenegraph/qsgdefaultrectanglenode_p.h b/src/quick/scenegraph/qsgdefaultrectanglenode_p.h
index 49ca3771c1..a5e43f8581 100644
--- a/src/quick/scenegraph/qsgdefaultrectanglenode_p.h
+++ b/src/quick/scenegraph/qsgdefaultrectanglenode_p.h
@@ -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