revlog: delete unused function makenode
authorMatt Mackall <mpm@selenic.com>
Sat, 21 Jul 2007 16:18:24 -0500
changeset 4919 c0df0cce64a4
parent 4918 e017d3a82e1d
child 4920 ee983d0dbea8
revlog: delete unused function makenode
mercurial/revlog.py
--- 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)