patch: remove unused ui arg to iterhunks
authorIdan Kamara <idankk86@gmail.com>
Fri, 06 May 2011 18:45:12 +0300
changeset 14240 28762bb767dc
parent 14239 967be4bb42a7
child 14241 45f7aa35f2fd
patch: remove unused ui arg to iterhunks
mercurial/patch.py
--- a/mercurial/patch.py	Fri May 06 18:45:12 2011 +0300
+++ b/mercurial/patch.py	Fri May 06 18:45:12 2011 +0300
@@ -994,7 +994,7 @@
     fp.seek(pos)
     return gitpatches
 
-def iterhunks(ui, fp):
+def iterhunks(fp):
     """Read a patch and yield the following events:
     - ("file", afile, bfile, firsthunk): select a new target file.
     - ("hunk", hunk): a new hunk is ready to be applied, follows a
@@ -1114,7 +1114,7 @@
     cwd = os.getcwd()
     opener = scmutil.opener(cwd)
 
-    for state, values in iterhunks(ui, fp):
+    for state, values in iterhunks(fp):
         if state == 'hunk':
             if not current_file:
                 continue