# HG changeset patch # User Patrick Mezard # Date 1326893599 -3600 # Node ID d4c0fa71de0161593874b5281a2ae11830096016 # Parent 264087940d5b823190ef1d1ea44696335a0f23ac largefiles: remove unused lfutil.readhash() diff -r 264087940d5b -r d4c0fa71de01 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')