timeline: removed unused variable in undo command

This commit is contained in:
itsmattkc
2020-01-19 23:52:23 +11:00
parent 48e6fd3955
commit 1dfac0ea7f
5 changed files with 12 additions and 15 deletions
+4 -6
View File
@@ -106,25 +106,23 @@ void TrackRippleRemoveBlockCommand::undo()
}
}
TrackInsertBlockBetweenBlocksCommand::TrackInsertBlockBetweenBlocksCommand(TrackOutput *track,
TrackInsertBlockAfterCommand::TrackInsertBlockAfterCommand(TrackOutput *track,
Block *block,
Block *before,
Block *after,
QUndoCommand *parent) :
QUndoCommand(parent),
track_(track),
block_(block),
before_(before),
after_(after)
before_(before)
{
}
void TrackInsertBlockBetweenBlocksCommand::redo()
void TrackInsertBlockAfterCommand::redo()
{
track_->InsertBlockAfter(block_, before_);
}
void TrackInsertBlockBetweenBlocksCommand::undo()
void TrackInsertBlockAfterCommand::undo()
{
track_->RippleRemoveBlock(block_);
}