Patchwork D60: match: remove unused negatematcher

login
register
mail settings
Submitter phabricator
Date July 17, 2017, 6:29 p.m.
Message ID <e0bf1886b42731b29101d029562f5888@localhost.localdomain>
Download mbox | patch
Permalink /patch/22447/
State Not Applicable
Headers show

Comments

phabricator - July 17, 2017, 6:29 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG80e1331a7fe9: match: remove unused negatematcher (authored by martinvonz).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D60?vs=130&id=205

REVISION DETAIL
  https://phab.mercurial-scm.org/D60

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: martinvonz, #hg-reviewers, durham, durin42
Cc: durham, mercurial-devel

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -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]