summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2019-03-21 15:29:48 +0300
committerKonstantin Ritt <ritt.ks@gmail.com>2019-03-22 18:49:41 +0000
commit9542f9570d16619365e691aaac2053765b9286a2 (patch)
tree75eb3ea790170bfa1e587e3fdaf8d5c6ea6e5384
parente235773d244c5e839de76fe5a3e1d3fddd49a5f4 (diff)
Get rid of unused code
Change-Id: Ic808147cccc54554a0d224676216bc2474cfef12 Reviewed-by: Rebecca Worledge <rebecca.worledge@theqtcompany.com>
-rw-r--r--src/bodymovin/bmshape.cpp5
-rw-r--r--src/bodymovin/bmshape_p.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/bodymovin/bmshape.cpp b/src/bodymovin/bmshape.cpp
index 38b994b..f65c554 100644
--- a/src/bodymovin/bmshape.cpp
+++ b/src/bodymovin/bmshape.cpp
@@ -84,7 +84,7 @@ QMap<QLatin1String, int> BMShape::setShapeMap()
return shapeMap;
}
-BMShape *BMShape::construct(QJsonObject definition, BMBase *parent, int constructAs)
+BMShape *BMShape::construct(QJsonObject definition, BMBase *parent)
{
qCDebug(lcLottieQtBodymovinParser) << "BMShape::construct()";
@@ -93,9 +93,6 @@ BMShape *BMShape::construct(QJsonObject definition, BMBase *parent, int construc
int typeToBuild = m_shapeMap.value(QLatin1String(type.data()), -1);
- if (constructAs != BM_SHAPE_ANY_TYPE_IX)
- typeToBuild = constructAs;
-
switch (typeToBuild) {
case BM_SHAPE_GROUP_IX:
{
diff --git a/src/bodymovin/bmshape_p.h b/src/bodymovin/bmshape_p.h
index 43ca20c..349be5a 100644
--- a/src/bodymovin/bmshape_p.h
+++ b/src/bodymovin/bmshape_p.h
@@ -76,7 +76,7 @@ public:
BMBase *clone() const override;
- static BMShape *construct(QJsonObject definition, BMBase *parent = nullptr, int constructAs = BM_SHAPE_ANY_TYPE_IX);
+ static BMShape *construct(QJsonObject definition, BMBase *parent = nullptr);
virtual const QPainterPath &path() const;
virtual bool acceptsTrim() const;