chiark / gitweb /
stgit.el: Refactor: remove unused argument to two functions
authorGustav Hållberg <gustav@virtutech.com>
Sat, 1 Aug 2009 21:16:13 +0000 (23:16 +0200)
committerGustav Hållberg <gustav@virtutech.com>
Mon, 3 Aug 2009 13:59:08 +0000 (15:59 +0200)
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
contrib/stgit.el

index c013a83d917a8cee3cb3ae620c28a3cf8221ae6c..97a6d1394d62b022117e82edb040606d8f3b7442 100644 (file)
@@ -876,13 +876,13 @@ (defun stgit-show ()
       (goto-char (point-min))
       (diff-mode))))
 
-(defun stgit-move-change-to-index (file status)
+(defun stgit-move-change-to-index (file)
   "Copies the workspace state of FILE to index, using git add or git rm"
   (let ((op (if (file-exists-p file) "add" "rm")))
     (stgit-capture-output "*git output*"
       (stgit-run-git op "--" file))))
 
-(defun stgit-remove-change-from-index (file status)
+(defun stgit-remove-change-from-index (file)
   "Unstages the change in FILE from the index"
   (stgit-capture-output "*git output*"
     (stgit-run-git "reset" "-q" "--" file)))
@@ -895,11 +895,9 @@ (defun stgit-file-toggle-index ()
       (error "No file on the current line"))
     (let ((patch-name (stgit-patch-name-at-point)))
       (cond ((eq patch-name :work)
-             (stgit-move-change-to-index (stgit-file-file patched-file)
-                                         (stgit-file-status patched-file)))
+             (stgit-move-change-to-index (stgit-file-file patched-file)))
             ((eq patch-name :index)
-             (stgit-remove-change-from-index (stgit-file-file patched-file)
-                                             (stgit-file-status patched-file)))
+             (stgit-remove-change-from-index (stgit-file-file patched-file)))
             (t
              (error "Can only move files in the working tree to index")))))
   (stgit-refresh-worktree)