diff options
| author | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-15 00:12:05 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-15 00:12:05 +0200 |
| commit | 2982cd96113eb23f36fae59382535f4c5491ebb8 (patch) | |
| tree | aaec5c9e0b43581d2d8153d5bda05860386e9da6 /projectile.el | |
| parent | a34690a32edbcf9737c5be5bba553472cb701abe (diff) | |
Remove unnecessary fboundp guard and declare-function
- Remove (fboundp 'vc-git-grep) check since (require 'vc-git) is
called right before it, making the function always available.
- Remove (declare-function string-trim "subr-x") since string-trim
is unconditionally available via compat 30.
Diffstat (limited to 'projectile.el')
| -rw-r--r-- | projectile.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/projectile.el b/projectile.el index c40b75b..49f3355 100644 --- a/projectile.el +++ b/projectile.el @@ -73,7 +73,6 @@ (declare-function eshell-search-path "esh-ext") (declare-function vc-dir "vc-dir") (declare-function vc-dir-busy "vc-dir") -(declare-function string-trim "subr-x") (declare-function tramp-archive-file-name-p "tramp-archive") (declare-function tramp-archive-file-name-archive "tramp-archive") (declare-function helm-grep-get-file-extensions "helm-grep") @@ -4462,8 +4461,7 @@ With REGEXP given, don't query the user for a regexp." (require 'vc-git) ;; for `vc-git-grep' ;; in git projects users have the option to use `vc-git-grep' instead of `rgrep' (if (and (eq (projectile-project-vcs) 'git) - projectile-use-git-grep - (fboundp 'vc-git-grep)) + projectile-use-git-grep) (vc-git-grep search-regexp (or files "") root-dir) ;; paths for find-grep should relative and without trailing / (let ((grep-find-ignored-files |
