Skip to content
Snippets Groups Projects
Commit 7fb9f7b8 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

VCS: Devirtualize diff-related functions


They are not overridden anywhere, nor such an override seems useful

Change-Id: I1f255b90280d1df37c734789b14086467a469806
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 7cb80f0e
No related branches found
No related tags found
No related merge requests found
......@@ -235,13 +235,8 @@ protected:
* source and version control. */
virtual QString findDiffFile(const QString &f) const;
virtual bool canApplyDiffChunk(const DiffChunk &dc) const;
// Revert a patch chunk. Default implementation uses patch.exe
virtual bool applyDiffChunk(const DiffChunk &dc, bool revert = false) const;
virtual void addChangeActions(QMenu *menu, const QString &change);
private:
// Implement to return a set of change identifiers in
// annotation mode
virtual QSet<QString> annotationChanges() const = 0;
......@@ -263,6 +258,10 @@ private:
virtual bool isValidRevision(const QString &revision) const;
private:
bool canApplyDiffChunk(const DiffChunk &dc) const;
// Revert a patch chunk. Default implementation uses patch.exe
bool applyDiffChunk(const DiffChunk &dc, bool revert = false) const;
// Indicates if the editor has diff contents. If true, an appropriate
// highlighter is used and double-click inside a diff chunk jumps to
// the relevant file and line
......
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