changeset 6532:833be17000b6

removing unused local ccache in patch.diff
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 11 Apr 2008 15:14:00 +0200
parents c2c4fa9af016
children 65f1b97484be
files mercurial/patch.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sat Apr 12 23:05:51 2008 -0400
+++ b/mercurial/patch.py	Fri Apr 11 15:14:00 2008 +0200
@@ -1168,12 +1168,6 @@
     if not node1:
         node1 = repo.dirstate.parents()[0]
 
-    ccache = {}
-    def getctx(r):
-        if r not in ccache:
-            ccache[r] = context.changectx(repo, r)
-        return ccache[r]
-
     flcache = {}
     def getfilectx(f, ctx):
         flctx = ctx.filectx(f, filelog=flcache.get(f))