# HG changeset patch # User Martin von Zweigbergk # Date 1499795215 25200 # Node ID 80e1331a7fe970f3e56fde9044949d72d3afdf30 # Parent 258298f4712b603e7bf3ff7517132ab8a3cabada 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 diff -r 258298f4712b -r 80e1331a7fe9 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 ('' % 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 ('' % self._matcher) - def patkind(pattern, default=None): '''If pattern is 'kind:pat' with a known kind, return kind.''' return _patsplit(pattern, default)[0]