mercurial/node.py
changeset 1091 d62130f99a73
parent 1089 142b5d5ec9cc
child 1541 bf4e7ef08741
--- a/mercurial/node.py
+++ b/mercurial/node.py
@@ -19,18 +19,3 @@ def bin(node):
 
 def short(node):
     return hex(node[:6])
-
-def hash(text, p1, p2):
-    """generate a hash from the given text and its parent hashes
-
-    This hash combines both the current file contents and its history
-    in a manner that makes it easy to distinguish nodes with the same
-    content in the revision graph.
-    """
-    l = [p1, p2]
-    l.sort()
-    s = sha.new(l[0])
-    s.update(l[1])
-    s.update(text)
-    return s.digest()
-