Skip to content

Commit

Permalink
Merge pull request #491 from mishazharov/cargo-outdated-dead-code
Browse files Browse the repository at this point in the history
Remove dead code in `cargo-outdated`
  • Loading branch information
brotzeit committed Jan 30, 2023
2 parents 97d7cc9 + 3a31263 commit a5fc66c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions rustic-cargo.el
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,6 @@ Execute process in PATH."
(interactive)
(rustic-cargo-outdated default-directory))

(defun rustic-cargo-outdated--skip-to-packages ()
"Move line forward till we reach the package name."
(goto-char (point-min))
(let ((line (buffer-substring-no-properties (line-beginning-position) (line-end-position))))
(while (not (or (eobp) (s-starts-with? "--" line)))
(forward-line 1)
(setf line (buffer-substring-no-properties (line-beginning-position) (line-end-position))))
(when (s-starts-with? "--" line) (forward-line 1))))

(defun rustic-cargo-outdated-sentinel (proc _output)
"Sentinel for rustic-cargo-outdated-process."
(let ((buf (process-buffer proc))
Expand Down

0 comments on commit a5fc66c

Please sign in to comment.