Skip to content

Commit

Permalink
Remove dead code in cargo-outdated
Browse files Browse the repository at this point in the history
Previously I refactored the codebase not to use
rustic-cargo-outdated--skip-to-packages. However, I forgot to actually
remove the function definition. This commit does that
  • Loading branch information
mishazharov committed Jan 30, 2023
1 parent 97d7cc9 commit 3a31263
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 3a31263

Please sign in to comment.