helm: remove unnecessary setting on xref-show-xrefs-function

For `helm` users, we set `xref-show-xrefs-function` according to Emacs version.
This is a two-fold unnecessity:
- We now only support Emacs version > 27, so `hellm-xref-show-xrefs` should not
be used anyway.
- `hem-xref` already set this variable according to Emacs version. See
[here][ref].

This commit removes this.

ref: ea0e4ed8a9/helm-xref.el (L192-L197)
This commit is contained in:
Lucius Hu 2022-08-04 18:50:26 -04:00
parent a611a602c0
commit 7706f0ffd2
No known key found for this signature in database
GPG key ID: 7E474E82E29B5A7A

View file

@ -481,12 +481,7 @@
xref-find-definitions-other-window
xref-find-definitions-other-frame
xref-find-references
spacemacs/jump-to-definition))
;; Use helm-xref to display `xref.el' results.
(setq xref-show-xrefs-function (if (< emacs-major-version 27)
#'helm-xref-show-xrefs
#'helm-xref-show-xrefs-27)))))
spacemacs/jump-to-definition)))))
(defun helm/post-init-imenu ()
(spacemacs/set-leader-keys "ji" 'spacemacs/helm-jump-in-buffer))