projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32512b7
)
chunk.py: remove unused non-tagged hash code
author
Brian Warner
<warner@allmydata.com>
Fri, 30 Mar 2007 18:32:47 +0000
(11:32 -0700)
committer
Brian Warner
<warner@allmydata.com>
Fri, 30 Mar 2007 18:32:47 +0000
(11:32 -0700)
src/allmydata/chunk.py
patch
|
blob
|
history
diff --git
a/src/allmydata/chunk.py
b/src/allmydata/chunk.py
index 59a2c08cffe2c9d1cbd471d64de805204741bb00..c3342bc14d9da647fea572f263dfd02d0121c5e5 100644
(file)
--- a/
src/allmydata/chunk.py
+++ b/
src/allmydata/chunk.py
@@
-47,8
+47,6
@@
or implied. It probably won't make your computer catch on fire,
or eat your children, but it might. Use at your own risk.
"""
-import sha
-
from allmydata.util.hashutil import tagged_hash, tagged_pair_hash
__version__ = '1.0.0-allmydata'
@@
-56,13
+54,6
@@
__version__ = '1.0.0-allmydata'
BLOCK_SIZE = 65536
MAX_CHUNK_SIZE = BLOCK_SIZE + 4096
-def hash(s):
- """
- Cryptographic hash function used by this module.
- """
- return sha.new(s).digest()
-
-
def roundup_pow2(x):
"""
Round integer C{x} up to the nearest power of 2.