Skip to content

Commit

Permalink
chore: Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 24, 2024
1 parent 6de1cc7 commit ec7b2fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
19 changes: 0 additions & 19 deletions clients/lsp-cobol.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,6 @@ This is only for development use."
:type 'integer
:group 'lsp-cobol)

;;
;;; Util

(defmacro lsp-cobol--mute-apply (&rest body)
"Execute BODY without message."
(declare (indent 0) (debug t))
`(let (message-log-max)
(with-temp-message (or (current-message) nil)
(let ((inhibit-message t)) ,@body))))

(defun lsp-cobol--execute (cmd &rest args)
"Return non-nil if CMD executed succesfully with ARGS."
(save-window-excursion
(lsp-cobol--mute-apply
(= 0 (shell-command (concat cmd " "
(mapconcat #'shell-quote-argument
(cl-remove-if #'null args)
" ")))))))

;;
;;; Installation

Expand Down
19 changes: 0 additions & 19 deletions clients/lsp-zig.el
Original file line number Diff line number Diff line change
Expand Up @@ -205,25 +205,6 @@ If `true', replace the text after the cursor."
:group 'lsp-zig
:type 'boolean)

;;
;;; Util

(defmacro lsp-zig--mute-apply (&rest body)
"Execute BODY without message."
(declare (indent 0) (debug t))
`(let (message-log-max)
(with-temp-message (or (current-message) nil)
(let ((inhibit-message t)) ,@body))))

(defun lsp-zig--execute (cmd &rest args)
"Return non-nil if CMD executed succesfully with ARGS."
(save-window-excursion
(lsp-zig--mute-apply
(= 0 (shell-command (concat cmd " "
(mapconcat #'shell-quote-argument
(cl-remove-if #'null args)
" ")))))))

;;
;;; Installation

Expand Down

0 comments on commit ec7b2fe

Please sign in to comment.