mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 14:41:43 +00:00
remove max_chunk_size (unused)
This commit is contained in:
parent
4e3be1db5e
commit
3b9798cffc
2 changed files with 1 additions and 10 deletions
|
@ -19,7 +19,7 @@
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue