From 3a31263b51521a1e26688cbec44718f50509f8d7 Mon Sep 17 00:00:00 2001 From: Misha Zharov Date: Sun, 29 Jan 2023 23:36:12 -0800 Subject: [PATCH] Remove dead code in `cargo-outdated` 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 --- rustic-cargo.el | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rustic-cargo.el b/rustic-cargo.el index 7e982a0d..19d61fe1 100644 --- a/rustic-cargo.el +++ b/rustic-cargo.el @@ -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))