Patchwork [2,of,4] unionrepo: remove useless method _chunk

login
register
mail settings
Submitter Wojciech Lopata
Date Sept. 26, 2013, 6:14 p.m.
Message ID <40d1012f2210f3cc5f9b.1380219283@dev1179.prn1.facebook.com>
Download mbox | patch
Permalink /patch/2645/
State Deferred
Headers show

Comments

Wojciech Lopata - Sept. 26, 2013, 6:14 p.m.
# HG changeset patch
# User Wojciech Lopata <lopek@fb.com>
# Date 1380211484 25200
#      Thu Sep 26 09:04:44 2013 -0700
# Node ID 40d1012f2210f3cc5f9ba7bc7f11a53f18863dcf
# Parent  54ae55d8365d44a5bc8404311531f380c9fd5ad5
unionrepo: remove useless method _chunk

This method is not used in the unionrepo.py file at all. It is used in the
revlog class in revdiff and revision methods, but these are never called in a
way that would need the _chunk method override.

Patch

diff --git a/mercurial/unionrepo.py b/mercurial/unionrepo.py
--- a/mercurial/unionrepo.py
+++ b/mercurial/unionrepo.py
@@ -58,11 +58,6 @@ 
             self.bundlerevs.add(n)
             n += 1
 
-    def _chunk(self, rev):
-        if rev <= self.repotiprev:
-            return revlog.revlog._chunk(self, rev)
-        return self.revlog2._chunk(self.node(rev))
-
     def revdiff(self, rev1, rev2):
         """return or calculate a delta between two revisions"""
         if rev1 > self.repotiprev and rev2 > self.repotiprev: