remove max_chunk_size (unused)

This commit is contained in:
Thomas Waldmann 2021-01-14 19:56:39 +01:00
parent 4e3be1db5e
commit 3b9798cffc
2 changed files with 1 additions and 10 deletions

View File

@ -19,7 +19,7 @@ from .logger import create_logger
logger = create_logger()
from . import xattr
from .chunker import get_chunker, max_chunk_size, Chunk, cached_hash, zeros
from .chunker import get_chunker, Chunk, cached_hash, zeros
from .cache import ChunkListEntry
from .crypto.key import key_factory
from .compress import Compressor, CompressionSpec

View File

@ -308,15 +308,6 @@ def get_chunker(algo, *params, **kw):
raise TypeError('unsupported chunker algo %r' % algo)
def max_chunk_size(algo, *params):
# see also parseformat.ChunkerParams return values
if algo == 'buzhash':
return 1 << params[1]
if algo == 'fixed':
return max(params[0], params[1])
raise TypeError('unsupported chunker algo %r' % algo)
def buzhash(data, unsigned long seed):
cdef uint32_t *table
cdef uint32_t sum