Commits

Steve Borho committed 884ce61

fileview: remove two obsolete methods

Comments (0)

Files changed (2)

tortoisehg/hgqt/filedialogs.py

     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)

tortoisehg/hgqt/fileview.py

         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)
                 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.