Mercurial > hg-stable
changeset 15915:d4c0fa71de01
largefiles: remove unused lfutil.readhash()
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 18 Jan 2012 14:33:19 +0100 |
parents | 264087940d5b |
children | c96148346af8 |
files | hgext/largefiles/lfutil.py |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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')