Read about our upcoming Code of Conduct on this issue

Commit 82f98cd5 authored by Steve Borho's avatar Steve Borho
Browse files

fileview: remove two obsolete methods

parent 7e2d3593a33d
......@@ -341,8 +341,7 @@ class FileDiffDialog(_AbstractFileDialog):
def setupModels(self):
self.filedata = {'left': None, 'right': None}
self._invbarchanged = False
self.filerevmodel = FileRevModel(self.repo, self.filename,
parent=self)
self.filerevmodel = FileRevModel(self.repo, self.filename, parent=self)
self.filerevmodel.filled.connect(self.modelFilled)
self.tableView_revisions_left.setModel(self.filerevmodel)
self.tableView_revisions_right.setModel(self.filerevmodel)
......
......@@ -314,12 +314,6 @@ class HgFileView(QFrame):
self.sci.setTabWidth(ctx._repo.tabwidth)
self.actionAnnMode.setVisible(ctx.rev() != None)
def rev(self):
return self._ctx.rev()
def filename(self):
return self._filename
def displayDiff(self, rev):
if rev != self._p_rev:
self.displayFile(rev=rev)
......@@ -334,7 +328,7 @@ class HgFileView(QFrame):
idx = len(self.ann.fctxann) - 1
ctx = self.ann.fctxann[idx]
rev = ctx.rev()
desc = hglib.get_revision_desc(ctx, self.filename())
desc = hglib.get_revision_desc(ctx, self._filename)
if rev != self.lastrev:
self.showDescSignal.emit(desc)
self.lastrev = rev
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment