Skip to content

Commit e9cdc17

Browse files
committed
chore: remove unneeded declare variables
1 parent 4075126 commit e9cdc17

4 files changed

Lines changed: 0 additions & 45 deletions

File tree

agent-shell-menu.el

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
(require 'agent-shell-queue)
3939

4040
(declare-function agent-shell-viewport--shell-buffer "agent-shell-viewport")
41-
(declare-function agent-shell--new-shell "agent-shell")
4241
(declare-function agent-shell-ui--toggle-fragment-at-point "agent-shell-ui")
4342

4443
(declare-function agent-review "agent-review")
@@ -669,7 +668,6 @@ three expand-by-default customization variables."
669668

670669
;;; Session info buffer
671670

672-
(declare-function agent-shell--state "agent-shell")
673671
(declare-function shell-maker-process "shell-maker")
674672

675673
(defun agent-shell-menu--count-fragments (buf)

agent-shell-queue-db.el

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@
2727
(require 'cl-lib)
2828
(require 'agent-shell-queue)
2929

30-
(declare-function agent-shell-queue--ensure-loaded "agent-shell-queue")
31-
(declare-function agent-shell-queue--refresh-buffer "agent-shell-queue")
32-
(declare-function agent-shell-queue-export "agent-shell-queue")
33-
(declare-function agent-shell-queue-import "agent-shell-queue")
34-
(declare-function agent-shell-queue--scope-label "agent-shell-queue")
35-
(declare-function agent-shell-queue--item-to-yaml "agent-shell-queue")
36-
(declare-function agent-shell-queue--executor-name "agent-shell-queue")
37-
(declare-function agent-shell-queue--executor-from-plist "agent-shell-queue")
3830

3931
;;; Variables
4032

agent-shell-queue-org.el

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ string-in-paragraph-contents issues during tree walking."
210210

211211
;;; Org heading → queue capture
212212

213-
(declare-function agent-shell-queue--open-capture "agent-shell-queue")
214-
215213
;;;###autoload
216214
(defun agent-shell-queue-org-refile-from-heading (&optional remove-original)
217215
"Capture the current org heading's subtree text into the agent-shell-queue.

agent-shell-queue.el

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@
6565
"Alist bucket key for items not yet assigned to any shell.")
6666

6767
(declare-function shell-maker-busy "shell-maker")
68-
(declare-function agent-shell-subscribe-to "agent-shell")
69-
(declare-function agent-shell-unsubscribe "agent-shell")
7068
(declare-function markdown-mode "markdown-mode")
7169
(declare-function yaml-encode "yaml")
7270
(declare-function yaml-parse-string "yaml")
@@ -734,7 +732,6 @@ Installed as :before advice on `shell-maker-submit'."
734732
(advice-add 'shell-maker-submit :before #'agent-shell-queue--on-submit-intercept)
735733

736734
(declare-function shell-maker-busy "shell-maker")
737-
(declare-function agent-shell-queue-only-mode "agent-shell-queue")
738735

739736
(defun agent-shell-queue--intercept-clear ()
740737
(when (overlayp agent-shell-queue--intercept-overlay)
@@ -846,10 +843,6 @@ Enforces mutual exclusivity and updates the prompt indicator."
846843
(agent-shell-queue--refresh-buffer)
847844
(message "agent-shell-queue: queue-intercept disabled in %d buffer(s)" (length cleared))))
848845

849-
(declare-function agent-shell-queue--default-state-file "agent-shell-queue-persistence")
850-
(declare-function agent-shell-queue--default-archive-file "agent-shell-queue-persistence")
851-
(declare-function agent-shell-queue--archive-file "agent-shell-queue-persistence")
852-
853846
(defun agent-shell-queue--default-pick-buffer (prompt)
854847
"Pick a live agent-shell buffer using PROMPT via `completing-read'."
855848
(when-let* ((bufs (agent-shell-buffers)))
@@ -1007,23 +1000,6 @@ but that yields \"0d\" for a zero delta instead of \"0s\"."
10071000

10081001
;;; Persistence — implementation in agent-shell-queue-persistence.el
10091002

1010-
(declare-function agent-shell-queue--serialize-plist "agent-shell-queue-persistence")
1011-
(declare-function agent-shell-queue--deserialize-plist "agent-shell-queue-persistence")
1012-
(declare-function agent-shell-queue--serialize-json "agent-shell-queue-persistence")
1013-
(declare-function agent-shell-queue--deserialize-json "agent-shell-queue-persistence")
1014-
(declare-function agent-shell-queue--serialize-yaml "agent-shell-queue-persistence")
1015-
(declare-function agent-shell-queue--deserialize-yaml "agent-shell-queue-persistence")
1016-
(declare-function agent-shell-queue--safe-save-directory "agent-shell-queue-persistence")
1017-
(declare-function agent-shell-queue-serialize "agent-shell-queue-persistence")
1018-
(declare-function agent-shell-queue-deserialize "agent-shell-queue-persistence")
1019-
(declare-function agent-shell-queue-register-format "agent-shell-queue-persistence")
1020-
(declare-function agent-shell-queue-format-file-extension "agent-shell-queue-persistence")
1021-
(declare-function agent-shell-queue--append-done-log "agent-shell-queue-persistence")
1022-
(declare-function agent-shell-queue--write-archive "agent-shell-queue-persistence")
1023-
(declare-function agent-shell-queue--log-write "agent-shell-queue-persistence")
1024-
(declare-function agent-shell-queue--load "agent-shell-queue-persistence")
1025-
(declare-function agent-shell-queue--migrate-queue-struct "agent-shell-queue-persistence")
1026-
10271003
;;;###autoload
10281004
(defun agent-shell-queue-buffer-archive ()
10291005
"Archive the item at point to the archive file and remove it from the queue.
@@ -4907,8 +4883,6 @@ how the window was opened (i.e. independent of `quit-restore' state)."
49074883
(progn (delete-window win) (kill-buffer buf))
49084884
(kill-buffer buf))))
49094885

4910-
(declare-function agent-shell-set-session-mode "agent-shell")
4911-
49124886
(defun agent-shell-queue--capture-plan-mode-choice (buf)
49134887
"When BUF's session is in a blocking mode, prompt for what to do.
49144888
Returns non-nil if the item should be queued as `blocked.skip'.
@@ -5045,8 +5019,6 @@ If a draft was previously saved from this buffer it is updated in place."
50455019
(thing-at-point 'word t)))))
50465020
(insert thing)))
50475021

5048-
(declare-function annotated-completing-read-context-from-point "annotated-completing-read")
5049-
50505022
(defun agent-shell-queue-capture-select-context ()
50515023
"Select a string from the origin buffer's context via completing-read and insert it."
50525024
(interactive)
@@ -5543,9 +5515,6 @@ For each item whose ID already exists, prompts to keep, replace, or assign new I
55435515
`new' creates a clean new session via `agent-shell-new-shell'.
55445516
`fork' uses the ACP fork session option via `agent-shell-fork'.")
55455517

5546-
(declare-function agent-shell-new-shell "agent-shell")
5547-
(declare-function agent-shell-fork "agent-shell")
5548-
55495518
(defmacro agent-shell-queue-with-paused-session (buf &rest body)
55505519
"Execute BODY with BUF's queue session paused, then always resume it.
55515520
BUF can be a buffer object or buffer name string.
@@ -6182,8 +6151,6 @@ interjection buffer is already pending."
61826151

61836152
;;; Queue-only mode
61846153

6185-
(declare-function shell-maker-busy "shell-maker")
6186-
61876154
(defcustom agent-shell-queue-input-mode-default 'default
61886155
"Default input routing mode for new agent-shell sessions.
61896156
One of `default' (normal shell input), `queue-intercept' (capture user

0 commit comments

Comments
 (0)