diff options
author | Marco Bubke <marco.bubke@digia.com> | 2013-05-22 16:27:12 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@digia.com> | 2013-05-28 15:58:55 +0200 |
commit | 2753ca94c787f1c827e4a34f50257d480bca880b (patch) | |
tree | 36e5909dae8fbfda76b3b5e1734efa604cefb522 | |
parent | a8d0d93d6cbb20dd1ee6fa7833ae8aa1985c46cd (diff) | |
download | qt-creator-2753ca94c787f1c827e4a34f50257d480bca880b.tar.gz |
QmlDesigner: Remove unused code
Change-Id: I08e98f22d3afd5911c56f1471701587db9d9c446
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
4 files changed, 0 insertions, 70 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.cpp b/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.cpp index 91f2f8ddc6..f817b4555f 100644 --- a/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.cpp +++ b/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.cpp @@ -63,31 +63,4 @@ QDataStream &operator>>(QDataStream &in, InformationChangedCommand &command) return in; } -QDebug operator<<(QDebug debug, const InformationChangedCommand &command) -{ - debug << QLatin1String("InformationChangedCommand:\n"); - foreach (const InformationContainer &information, command.informations()) { - if (information.nameAsString() == "Transform" || - information.nameAsString() == "IsMovable" || - information.nameAsString() == "BoundingRect") { - - debug << QLatin1String("instanceId: "); - debug << information.instanceId(); - debug << QLatin1String("\n"); - debug << QLatin1String("name: "); - debug << information.nameAsString(); - debug << QLatin1String("\n"); - debug << information.information(); - debug << QLatin1String("\n"); - debug << information.secondInformation(); - debug << QLatin1String("\n"); - debug << information.thirdInformation(); - debug << QLatin1String("\n"); - debug << QLatin1String("\n"); - } - } - - return debug; -} - } // namespace QmlDesigner diff --git a/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.h b/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.h index eb9ae26818..725fdd9990 100644 --- a/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.h +++ b/share/qtcreator/qml/qmlpuppet/commands/informationchangedcommand.h @@ -54,7 +54,6 @@ private: QDataStream &operator<<(QDataStream &out, const InformationChangedCommand &command); QDataStream &operator>>(QDataStream &in, InformationChangedCommand &command); -QDebug operator<<(QDebug debug, const InformationChangedCommand &command); } // namespace QmlDesigner diff --git a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp index d4d54b8a63..611fad7611 100644 --- a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp +++ b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp @@ -60,47 +60,6 @@ InformationName InformationContainer::name() const return InformationName(m_name); } -QString InformationContainer::nameAsString() const -{ - switch (name()) { - case NoName: - return QLatin1String("NoName"); - case Size: - return QLatin1String("Size"); - case BoundingRect: - return QLatin1String("BoundingRect"); - case Transform: - return QLatin1String("Transform"); - case HasAnchor: - return QLatin1String("HasAnchor"); - case Anchor: - return QLatin1String("Anchor"); - case InstanceTypeForProperty: - return QLatin1String("InstanceTypeForProperty"); - case PenWidth: - return QLatin1String("PenWidth"); - case Position: - return QLatin1String("Position"); - case IsInLayoutable: - return QLatin1String("IsInLayoutable"); - case SceneTransform: - return QLatin1String("SceneTransform"); - case IsResizable: - return QLatin1String("IsResizable"); - case IsMovable: - return QLatin1String("IsMovable"); - case IsAnchoredByChildren: - return QLatin1String("IsAnchoredByChildren"); - case IsAnchoredBySibling: - return QLatin1String("IsAnchoredBySibling"); - case HasContent: - return QLatin1String("HasContent"); - case HasBindingForProperty: - return QLatin1String("HasBindingForProperty"); - } - return QLatin1String("Unknown"); -} - QVariant InformationContainer::information() const { return m_information; diff --git a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.h b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.h index 0868f52554..d3d97a9379 100644 --- a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.h +++ b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.h @@ -54,7 +54,6 @@ public: qint32 instanceId() const; InformationName name() const; - QString nameAsString() const; QVariant information() const; QVariant secondInformation() const; QVariant thirdInformation() const; |