From fb2fb6a91559f1f4b682b34d12f750ec20aa7fce Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 25 Nov 2014 06:54:16 -0500 Subject: Remove unused .add methods, and show the source_pkg_match in the debug output --- coverage/files.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index 3a29886..7c82d5f 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -156,10 +156,6 @@ class TreeMatcher(object): """A list of strings for displaying when dumping state.""" return self.dirs - def add(self, directory): - """Add another directory to the list we match for.""" - self.dirs.append(directory) - def match(self, fpath): """Does `fpath` indicate a file in one of our trees?""" for d in self.dirs: @@ -185,13 +181,8 @@ class ModuleMatcher(object): """A list of strings for displaying when dumping state.""" return self.modules - def add(self, module): - """Add another directory to the list we match for.""" - self.modules.append(module) - def match(self, module_name): - """Does `module_name` indicate a module in one of our packages? - """ + """Does `module_name` indicate a module in one of our packages?""" if not module_name: return False -- cgit v1.2.1