changeset 32400:8802c63599e1

match: delete icasefsmatcher now that it's same as matcher
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 18 May 2017 16:48:02 -0700
parents 1c1f7c946666
children 284b18303f61
files mercurial/match.py
diffstat 1 files changed, 3 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Thu May 18 15:45:50 2017 -0700
+++ b/mercurial/match.py	Thu May 18 16:48:02 2017 -0700
@@ -145,10 +145,9 @@
             kindpats.append((kind, pats, source))
         return kindpats
 
-    return icasefsmatcher(root, cwd, normalize, patterns=patterns,
-                          include=include, exclude=exclude, default=default,
-                          auditor=auditor, ctx=ctx, listsubrepos=listsubrepos,
-                          badfn=badfn)
+    return matcher(root, cwd, normalize, patterns=patterns, include=include,
+                   exclude=exclude, default=default, auditor=auditor, ctx=ctx,
+                   listsubrepos=listsubrepos, badfn=badfn)
 
 def exact(root, cwd, files, badfn=None):
     return match(root, cwd, files, exact=True, badfn=badfn)
@@ -453,16 +452,6 @@
             dir = self._path + "/" + dir
         return self._matcher.visitdir(dir)
 
-class icasefsmatcher(matcher):
-
-    def __init__(self, root, cwd, normalize, patterns, include, exclude,
-                 default, auditor, ctx, listsubrepos=False, badfn=None):
-        init = super(icasefsmatcher, self).__init__
-
-        init(root, cwd, normalize=normalize, patterns=patterns, include=include,
-             exclude=exclude, default=default, auditor=auditor,
-             ctx=ctx, listsubrepos=listsubrepos, badfn=badfn)
-
 def patkind(pattern, default=None):
     '''If pattern is 'kind:pat' with a known kind, return kind.'''
     return _patsplit(pattern, default)[0]