Commit 2753ca94 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Remove unused code



Change-Id: I08e98f22d3afd5911c56f1471701587db9d9c446
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent a8d0d93d
......@@ -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
......@@ -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
......
......@@ -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;
......
......@@ -54,7 +54,6 @@ public:
qint32 instanceId() const;
InformationName name() const;
QString nameAsString() const;
QVariant information() const;
QVariant secondInformation() const;
QVariant thirdInformation() const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment