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
--- 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]