Delete two unused functions

* eldoc-box.el (eldoc-box-quit-hook)
(eldoc-box--inject-quit-func): Delete.
This commit is contained in:
João Távora 2018-12-16 23:22:40 +00:00 committed by Yuan Fu
parent 44007aa67d
commit c7a670d6b9
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -134,14 +134,6 @@ Consider your machine's screen's resolution when setting this variable.")
(insert str) (insert str)
(eldoc-box--get-frame doc-buffer)))) (eldoc-box--get-frame doc-buffer))))
(defun eldoc-box-quit-hook ()
"Quit eglot doc childframe and remove self from hook."
(eldoc-box-quit-frame)
(remove-hook 'pre-command-hook #'eldoc-box-quit-hook t))
(defun eldoc-box--inject-quit-func ()
"Inject quit function into `pre-command-hook' so doing anything will quit eglot doc childframe."
(add-hook 'pre-command-hook #'eldoc-box-quit-hook t t))
(defun eldoc-box--window-side () (defun eldoc-box--window-side ()
"Return 'left if the selected window is on the left, "Return 'left if the selected window is on the left,