summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/qmaterial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/materialsystem/qmaterial.cpp')
-rw-r--r--src/render/materialsystem/qmaterial.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/render/materialsystem/qmaterial.cpp b/src/render/materialsystem/qmaterial.cpp
index 93518f602..3a1e75117 100644
--- a/src/render/materialsystem/qmaterial.cpp
+++ b/src/render/materialsystem/qmaterial.cpp
@@ -84,19 +84,6 @@ QMaterialPrivate::QMaterialPrivate()
{
}
-void QMaterial::copy(const QNode *ref)
-{
- QComponent::copy(ref);
- const QMaterial *material = static_cast<const QMaterial*>(ref);
- Q_FOREACH (QParameter *p, material->d_func()->m_parameters)
- addParameter(qobject_cast<QParameter *>(QNode::clone(p)));
-
- // TO DO: We may want to copy the node id of the effect and only send a clone
- // when we are the parent of the effect
- if (material->d_func()->m_effect && material->d_func()->m_effect->parent() == ref)
- setEffect(qobject_cast<QEffect *>(QNode::clone(material->d_func()->m_effect)));
-}
-
QMaterial::QMaterial(QNode *parent)
: QComponent(*new QMaterialPrivate, parent)
{