largefiles: remove unused lfutil.readhash()
authorPatrick Mezard <pmezard@gmail.com>
Wed, 18 Jan 2012 14:33:19 +0100
changeset 15915 d4c0fa71de01
parent 15914 264087940d5b
child 15916 c96148346af8
largefiles: remove unused lfutil.readhash()
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Wed Jan 18 14:19:43 2012 +0100
+++ b/hgext/largefiles/lfutil.py	Wed Jan 18 14:33:19 2012 +0100
@@ -390,15 +390,6 @@
     # same blecch as copyandhash() above
     infile.close()
 
-def readhash(filename):
-    rfile = open(filename, 'rb')
-    hash = rfile.read(40)
-    rfile.close()
-    if len(hash) < 40:
-        raise util.Abort(_('bad hash in \'%s\' (only %d bytes long)')
-                         % (filename, len(hash)))
-    return hash
-
 def writehash(hash, filename, executable):
     util.makedirs(os.path.dirname(filename))
     util.writefile(filename, hash + '\n')