Patchwork [11,of,11] subrepo: remove "_getstorehashcachepath" referred by no other code paths

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Nov. 19, 2014, 9:41 a.m.
Message ID <e15732f9ce62b261b57a.1416390116@juju>
Download mbox | patch
Permalink /patch/6798/
State Accepted
Commit 99a8864180007201aa5c95bcf304b911e82f53f4
Headers show

Comments

Katsunori FUJIWARA - Nov. 19, 2014, 9:41 a.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1416389714 -32400
#      Wed Nov 19 18:35:14 2014 +0900
# Node ID e15732f9ce62b261b57acb75da9655eab9ee88e3
# Parent  315bf3592aa102ceb5b4b1dc3984e8ff970eb441
subrepo: remove "_getstorehashcachepath" referred by no other code paths
Matt Mackall - Nov. 19, 2014, 11:06 p.m.
On Wed, 2014-11-19 at 18:41 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> # Date 1416389714 -32400
> #      Wed Nov 19 18:35:14 2014 +0900
> # Node ID e15732f9ce62b261b57acb75da9655eab9ee88e3
> # Parent  315bf3592aa102ceb5b4b1dc3984e8ff970eb441
> subrepo: remove "_getstorehashcachepath" referred by no other code paths

These are queued for default, thanks.

Patch

diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py
--- a/mercurial/subrepo.py
+++ b/mercurial/subrepo.py
@@ -561,11 +561,6 @@  class hgsubrepo(abstractsubrepo):
             filehash = util.sha1(vfs.tryread(relname)).hexdigest()
             yield '%s = %s\n' % (relname, filehash)
 
-    def _getstorehashcachepath(self, remotepath):
-        '''get a unique path for the store hash cache'''
-        return self._repo.join(os.path.join(
-            'cache', 'storehash', _getstorehashcachename(remotepath)))
-
     @propertycache
     def _cachestorehashvfs(self):
         return scmutil.vfs(self._repo.join('cache/storehash'))