changeset 4919:c0df0cce64a4

revlog: delete unused function makenode
author Matt Mackall <mpm@selenic.com>
date Sat, 21 Jul 2007 16:18:24 -0500
parents e017d3a82e1d
children ee983d0dbea8
files mercurial/revlog.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sat Jul 21 16:18:21 2007 -0500
+++ b/mercurial/revlog.py	Sat Jul 21 16:18:24 2007 -0500
@@ -831,14 +831,6 @@
         p1, p2 = self.parents(node)
         return hash(text, p1, p2) != node
 
-    def makenode(self, node, text):
-        """calculate a file nodeid for text, descended or possibly
-        unchanged from node"""
-
-        if self.cmp(node, text):
-            return hash(text, node, nullid)
-        return node
-
     def diff(self, a, b):
         """return a delta between two revisions"""
         return mdiff.textdiff(a, b)