Utils: Remove two unused AspectContainer functions

Change-Id: I786c80a84ee40cb6ea6711c13c208bd00ee6ad82
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-03-11 16:37:12 +01:00
parent da01f4544f
commit 4cebde86da
2 changed files with 0 additions and 14 deletions

View File

@@ -2082,18 +2082,6 @@ void AspectContainer::setAutoApply(bool on)
aspect->setAutoApply(on);
}
void AspectContainer::fromMap(const QString &prefix, const QVariantMap &map)
{
for (BaseAspect *aspect : qAsConst(d->m_items))
aspect->setValue(map.value(prefix + aspect->settingsKey()));
}
void AspectContainer::toMap(const QString &prefix, QVariantMap &map) const
{
for (BaseAspect *aspect : qAsConst(d->m_items))
map.insert(prefix + aspect->settingsKey(), aspect->value());
}
bool AspectContainer::equals(const AspectContainer &other) const
{
// FIXME: Expensive, but should not really be needed in a fully aspectified world.

View File

@@ -526,8 +526,6 @@ public:
void finish();
void reset();
void fromMap(const QString &prefix, const QVariantMap &map);
void toMap(const QString &prefix, QVariantMap &map) const;
bool equals(const AspectContainer &other) const;
void copyFrom(const AspectContainer &other);
void setAutoApply(bool on);