forked from qt-creator/qt-creator
VcsBaseEditor: Get rid of diffChunkApplied()
Drop unused arg from diffChunkReverted(). Change-Id: I5531645d317d62ae92cd0e63dadd583f8ab8996d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -1590,12 +1590,8 @@ void VcsBaseEditorWidget::slotApplyDiffChunk(const DiffChunk &chunk, PatchAction
|
||||
if (!PatchTool::confirmPatching(this, patchAction))
|
||||
return;
|
||||
|
||||
if (applyDiffChunk(chunk, patchAction)) {
|
||||
if (patchAction == PatchAction::Revert) // TODO: make just one signal
|
||||
emit diffChunkReverted(chunk);
|
||||
else
|
||||
emit diffChunkApplied(chunk);
|
||||
}
|
||||
if (applyDiffChunk(chunk, patchAction) && patchAction == PatchAction::Revert)
|
||||
emit diffChunkReverted();
|
||||
}
|
||||
|
||||
// Tagging of editors for re-use.
|
||||
|
||||
Reference in New Issue
Block a user