largefiles: drop unused 'pats' parameter from getstandinmatcher()
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 26 May 2015 09:46:48 -0700
changeset 25291 85f1aaf18ecb
parent 25290 8f88f768e24c
child 25292 31d543cd7062
largefiles: drop unused 'pats' parameter from getstandinmatcher() The parameter wasn't used even when it was imported from elsewhere in cfccd3bee7b3 (hgext: add largefiles extension, 2011-09-24).
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Tue May 26 14:14:36 2015 -0700
+++ b/hgext/largefiles/lfutil.py	Tue May 26 09:46:48 2015 -0700
@@ -238,7 +238,7 @@
     if path:
         link(storepath(repo, hash), path)
 
-def getstandinmatcher(repo, pats=[], opts={}):
+def getstandinmatcher(repo, pats=[]):
     '''Return a match object that applies pats to the standin directory'''
     standindir = repo.wjoin(shortname)
     if pats:
@@ -247,7 +247,7 @@
         # no patterns: relative to repo root
         pats = [standindir]
     # no warnings about missing files or directories
-    match = scmutil.match(repo[None], pats, opts)
+    match = scmutil.match(repo[None], pats)
     match.bad = lambda f, msg: None
     return match