Skip to content

Commit a6cba2f

Browse files
committed
Remove unused field
1 parent b2a1f05 commit a6cba2f

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

plugins/robots/common/twoDModel/src/engine/commands/changePropertyCommand.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
using namespace twoDModel::commands;
2020

2121
ChangePropertyCommand::ChangePropertyCommand(const graphicsUtils::AbstractScene &scene
22-
, const model::Model &model
2322
, const QStringList &ids
2423
, const QString &property
2524
, const QVariant &value)
2625
: mScene(scene)
27-
, mModel(model)
2826
, mIds(ids)
2927
, mPropertyName(property)
3028
{

plugins/robots/common/twoDModel/src/engine/commands/changePropertyCommand.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ChangePropertyCommand : public qReal::commands::AbstractCommand
3636
{
3737
public:
3838
/// Use this overload to modify properties via models api
39-
ChangePropertyCommand(const graphicsUtils::AbstractScene &scene, const model::Model &model
39+
ChangePropertyCommand(const graphicsUtils::AbstractScene &scene
4040
, const QStringList &ids, const QString &property, const QVariant &value);
4141

4242
protected:
@@ -47,7 +47,6 @@ class ChangePropertyCommand : public qReal::commands::AbstractCommand
4747
bool setProperties(const QMap<QString, QVariant> &values);
4848

4949
const graphicsUtils::AbstractScene &mScene;
50-
const model::Model &mModel;
5150
const QStringList mIds;
5251
QString mPropertyName;
5352

plugins/robots/common/twoDModel/src/engine/view/twoDModelWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ void TwoDModelWidget::setController(ControllerInterface &controller)
722722

723723
auto setItemsProperty = [=](const QStringList &items, const QString &property, const QVariant &value) {
724724
if (mController) {
725-
mController->execute(new commands::ChangePropertyCommand(*mScene, mModel, items, property, value));
725+
mController->execute(new commands::ChangePropertyCommand(*mScene, items, property, value));
726726
}
727727
};
728728

0 commit comments

Comments
 (0)