forked from qt-creator/qt-creator
Utils: Remove two unused AspectContainer functions
Change-Id: I786c80a84ee40cb6ea6711c13c208bd00ee6ad82 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2082,18 +2082,6 @@ void AspectContainer::setAutoApply(bool on)
|
|||||||
aspect->setAutoApply(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
|
bool AspectContainer::equals(const AspectContainer &other) const
|
||||||
{
|
{
|
||||||
// FIXME: Expensive, but should not really be needed in a fully aspectified world.
|
// FIXME: Expensive, but should not really be needed in a fully aspectified world.
|
||||||
|
@@ -526,8 +526,6 @@ public:
|
|||||||
void finish();
|
void finish();
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
void fromMap(const QString &prefix, const QVariantMap &map);
|
|
||||||
void toMap(const QString &prefix, QVariantMap &map) const;
|
|
||||||
bool equals(const AspectContainer &other) const;
|
bool equals(const AspectContainer &other) const;
|
||||||
void copyFrom(const AspectContainer &other);
|
void copyFrom(const AspectContainer &other);
|
||||||
void setAutoApply(bool on);
|
void setAutoApply(bool on);
|
||||||
|
Reference in New Issue
Block a user