Skip to content
Snippets Groups Projects
Commit c001d542 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused fct

parent 583ec9ca
No related branches found
No related tags found
1 merge request!2005rm unfinished undo/redo engine (#757)
...@@ -43,20 +43,6 @@ int CommandChangeValue::id() const ...@@ -43,20 +43,6 @@ int CommandChangeValue::id() const
return COMMAND_ID_CHANGE_VALUE; return COMMAND_ID_CHANGE_VALUE;
} }
bool CommandChangeValue::mergeWith(const QUndoCommand* command)
{
if (command->id() != id()) // make sure other is also a changeValue command
return false;
const auto* const other = dynamic_cast<const CommandChangeValue*>(command);
if (m_path != other->m_path)
return false;
m_newValue = other->m_newValue;
return true;
}
void CommandChangeValue::redo() void CommandChangeValue::redo()
{ {
if (m_isFirst) if (m_isFirst)
......
...@@ -27,7 +27,6 @@ public: ...@@ -27,7 +27,6 @@ public:
double newValue, const QString& path, QUndoCommand* parent = nullptr); double newValue, const QString& path, QUndoCommand* parent = nullptr);
int id() const override; int id() const override;
bool mergeWith(const QUndoCommand* command) override;
void redo() override; void redo() override;
void undo() override; void undo() override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment