From c7a670d6b905154afca0f8440ad092238162f334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 16 Dec 2018 23:22:40 +0000 Subject: [PATCH] Delete two unused functions * eldoc-box.el (eldoc-box-quit-hook) (eldoc-box--inject-quit-func): Delete. --- eldoc-box.el | 8 -------- 1 file changed, 8 deletions(-) diff --git a/eldoc-box.el b/eldoc-box.el index 43a7980..19afb2d 100644 --- a/eldoc-box.el +++ b/eldoc-box.el @@ -134,14 +134,6 @@ Consider your machine's screen's resolution when setting this variable.") (insert str) (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 () "Return 'left if the selected window is on the left,