mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-12 13:18:19 +00:00
chunk.py: remove unused non-tagged hash code
This commit is contained in:
parent
32512b73d6
commit
f55b9814ec
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user