Skip to content

Commit

Permalink
Remove unuseful code never called.
Browse files Browse the repository at this point in the history
* dired-async.el (dired-async-create-files):
Remove dired-create-files-failures stuff that don't happen on host but child.
  • Loading branch information
Thierry Volpiatto committed Apr 27, 2016
1 parent 6e29e82 commit e35506f
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions dired-async.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ See `dired-create-files' for the behavior of arguments."
(setq dired-async-operation nil)
(setq overwrite-query nil)
(let ((total (length fn-list))
dired-create-files-failures
failures async-fn-list skipped callback)
(let (to)
(dolist (from fn-list)
Expand Down Expand Up @@ -218,27 +217,18 @@ ESC or `q' to not overwrite any of the remaining files,
(with-current-buffer (get-file-buffer file)
(set-visited-file-name to nil t))))))))
;; Handle error happening in host emacs.
(cond
(dired-create-files-failures
(setq failures (nconc failures dired-create-files-failures))
(dired-log-summary
(format "%s failed for %d file%s in %d requests"
operation (length failures)
(dired-plural-s (length failures))
total)
failures))
(failures
(dired-log-summary
(format "%s failed for %d of %d file%s"
operation (length failures)
total (dired-plural-s total))
failures))
(skipped
(dired-log-summary
(format "%s: %d of %d file%s skipped"
operation (length skipped) total
(dired-plural-s total))
skipped)))
(cond (failures
(dired-log-summary
(format "%s failed for %d of %d file%s"
operation (length failures)
total (dired-plural-s total))
failures))
(skipped
(dired-log-summary
(format "%s: %d of %d file%s skipped"
operation (length skipped) total
(dired-plural-s total))
skipped)))
;; Start async process.
(when async-fn-list
(async-start `(lambda ()
Expand Down

0 comments on commit e35506f

Please sign in to comment.