From b96ad00679380540fe54ab1aebefe775b0cb2c51 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 10:39:38 -0700 Subject: [PATCH] Remove deprecated "processed" attributes --- melamine/classes.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/melamine/classes.py b/melamine/classes.py index de807e3..ef59d1d 100644 --- a/melamine/classes.py +++ b/melamine/classes.py @@ -17,7 +17,6 @@ class ShredDir: def __init__(self, path: Path) -> None: self.absolute_path = path.resolve() - self.processed = False self.contents = self._get_contents() self.byte_size = sum(item.byte_size for item in self.contents) self.mount_point = find_mount(self.absolute_path) @@ -59,16 +58,12 @@ class ShredFile: def __init__(self, path: Path) -> None: self.absolute_path = path.resolve() self.byte_size = path.stat().st_size - self.processed = False self.mount_point = find_mount(self.absolute_path) self.fs_handler = None self.hardlinks = None async def shred(self, hash: bool = False, dryrun: bool = False) -> Union[bool, bytes]: """Shred the file with a single file descriptor.""" - if not self.processed: - logger.error(f"File {self.absolute_path} tried to shred early.") - return False try: logger.info(f"Shredding file: {self.absolute_path}")