match: remove unused negatematcher
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 11 Jul 2017 10:46:55 -0700
changeset 33497 80e1331a7fe9
parent 33496 258298f4712b
child 33498 b7a75b9a3386
match: remove unused negatematcher This was only used by the sparse extension's dirstate._ignore override, which no longer exists. Differential Revision: https://phab.mercurial-scm.org/D60
mercurial/match.py
--- a/mercurial/match.py	Tue Jul 11 10:46:35 2017 -0700
+++ b/mercurial/match.py	Tue Jul 11 10:46:55 2017 -0700
@@ -679,16 +679,6 @@
     def __repr__(self):
         return ('<unionmatcher matchers=%r>' % self._matchers)
 
-class negatematcher(basematcher):
-    def __init__(self, matcher):
-        self._matcher = matcher
-
-    def matchfn(self, f):
-        return not self._matcher(f)
-
-    def __repr__(self):
-        return ('<negatematcher matcher=%r>' % self._matcher)
-
 def patkind(pattern, default=None):
     '''If pattern is 'kind:pat' with a known kind, return kind.'''
     return _patsplit(pattern, default)[0]