summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2015-12-02 17:52:30 +0100
committerjvoisin2015-12-02 17:52:30 +0100
commit67f831988111b2233ac4f29389d48ce536d71d6a (patch)
treeae4a5299cadc1c02c031d8624fb79b42429ad261
parent5d14fff49aa6c43091b2aaadc0944c7138b8efb0 (diff)
Remove two useless methods from the archive stripper
-rw-r--r--libmat/archive.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/libmat/archive.py b/libmat/archive.py
index 2e14538..07c5830 100644
--- a/libmat/archive.py
+++ b/libmat/archive.py
@@ -36,11 +36,6 @@ class GenericArchiveStripper(parser.GenericParser):
36 mat.secure_remove(path_file) 36 mat.secure_remove(path_file)
37 shutil.rmtree(self.tempdir) 37 shutil.rmtree(self.tempdir)
38 38
39 def _should_remove(self, key):
40 """ This method is not used, but since it's defined in
41 parser.GenericParser, we must implement it."""
42 pass
43
44 def is_clean(self, list_unsupported=False): 39 def is_clean(self, list_unsupported=False):
45 """ Virtual method to check for harmul metadata 40 """ Virtual method to check for harmul metadata
46 :param bool list_unsupported: 41 :param bool list_unsupported:
@@ -52,11 +47,6 @@ class GenericArchiveStripper(parser.GenericParser):
52 """ 47 """
53 return self.is_clean(list_unsupported=True) 48 return self.is_clean(list_unsupported=True)
54 49
55 def remove_all(self):
56 """ Virtual method to remove all metadata
57 """
58 raise NotImplementedError
59
60 50
61class ZipStripper(GenericArchiveStripper): 51class ZipStripper(GenericArchiveStripper):
62 """ Represent a zip file 52 """ Represent a zip file