From b832a5941458083dd6147efb652036552f95b786 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 12 Oct 2018 11:49:24 +0200 Subject: Refactor lightweight mode implementation --- libmat2/abstract.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libmat2/abstract.py') diff --git a/libmat2/abstract.py b/libmat2/abstract.py index cd72f2c..5bcaa69 100644 --- a/libmat2/abstract.py +++ b/libmat2/abstract.py @@ -19,6 +19,7 @@ class AbstractParser(abc.ABC): self.filename = filename fname, extension = os.path.splitext(filename) self.output_filename = fname + '.cleaned' + extension + self.lightweight_cleaning = False @abc.abstractmethod def get_meta(self) -> Dict[str, str]: @@ -27,10 +28,3 @@ class AbstractParser(abc.ABC): @abc.abstractmethod def remove_all(self) -> bool: pass # pragma: no cover - - def remove_all_lightweight(self) -> bool: - """ This method removes _SOME_ metadata. - It might be useful to implement it for fileformats that do - not support non-destructive cleaning. - """ - return self.remove_all() -- cgit v1.3