From 3b9798cffcb5b608bc103841d1d7bc22c41ea5ad Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 14 Jan 2021 19:56:39 +0100 Subject: [PATCH] remove max_chunk_size (unused) --- src/borg/archive.py | 2 +- src/borg/chunker.pyx | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/borg/archive.py b/src/borg/archive.py index b023a9cac..00a0867d0 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -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 diff --git a/src/borg/chunker.pyx b/src/borg/chunker.pyx index 8c3a297ab..7f763ff24 100644 --- a/src/borg/chunker.pyx +++ b/src/borg/chunker.pyx @@ -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