From 07ab6e02f42da58d71f554b6b2b9784e49a494d0 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 29 Aug 2024 20:53:06 +0200 Subject: [PATCH] hashindex types: remove some unused stuff --- src/borg/hashindex.pyi | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/borg/hashindex.pyi b/src/borg/hashindex.pyi index e8492ec85..722baaf9f 100644 --- a/src/borg/hashindex.pyi +++ b/src/borg/hashindex.pyi @@ -39,9 +39,6 @@ class ChunkKeyIterator: class ChunkIndex(IndexBase): def add(self, key: bytes, refs: int, size: int) -> None: ... def iteritems(self, marker: bytes = ...) -> Iterator: ... - def stats_against(self, master_index) -> Tuple: ... - def summarize(self) -> Tuple: ... - def zero_csize_ids(self) -> int: ... def __contains__(self, key: bytes) -> bool: ... def __getitem__(self, key: bytes) -> Type[ChunkIndexEntry]: ... def __setitem__(self, key: bytes, value: CIE) -> None: ... @@ -61,22 +58,14 @@ class NSIndex(IndexBase): def __contains__(self, key: bytes) -> bool: ... def __getitem__(self, key: bytes) -> Any: ... def __setitem__(self, key: bytes, value: Any) -> None: ... - def flags(self, key: bytes, mask: int, value: int = None) -> int: ... class NSIndex1(IndexBase): # legacy def iteritems(self, *args, **kwargs) -> Iterator: ... def __contains__(self, key: bytes) -> bool: ... def __getitem__(self, key: bytes) -> Any: ... def __setitem__(self, key: bytes, value: Any) -> None: ... - def flags(self, key: bytes, mask: int, value: int = None) -> int: ... class FuseVersionsIndex(IndexBase): def __contains__(self, key: bytes) -> bool: ... def __getitem__(self, key: bytes) -> Any: ... def __setitem__(self, key: bytes, value: Any) -> None: ... - -class CacheSynchronizer: - size_totals: int - num_files_totals: int - def __init__(self, chunks_index: Any) -> None: ... - def feed(self, chunk: bytes) -> None: ...