branch: externals/consult
commit 18822469e87baf80d23041e220c71344d1744e9a
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Remove unused consult-preview-map
---
 CHANGELOG.org | 1 +
 consult.el    | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/CHANGELOG.org b/CHANGELOG.org
index 517fe9b87a..884e2c80d6 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -20,6 +20,7 @@
 - BREAKING API CHANGE of =consult--read=, =consult--prompt=, =consult--multi=: 
The
   state function protocol changed. The function gets notified of more 
completion
   state changes. See the docstring of =consult--with-preview= for details.
+- Remove unused =consult-preview-map=.
 
 * Version 0.16 (2022-03-08)
 
diff --git a/consult.el b/consult.el
index e98e68e364..858502dad8 100644
--- a/consult.el
+++ b/consult.el
@@ -1997,9 +1997,6 @@ argument list :command and a highlighting function 
:highlight."
 (defvar consult-crm-map (make-sparse-keymap)
   "Keymap added by `consult-completing-read-multiple'.")
 
-(defvar consult-preview-map (make-sparse-keymap)
-  "Keymap added for commands with preview.")
-
 (defvar consult-narrow-map
   (let ((map (make-sparse-keymap)))
     (define-key map " " consult--narrow-space)
@@ -2057,7 +2054,6 @@ PREVIEW-KEY are the preview keys."
       (delq nil (list keymap
                       (and async consult-async-map)
                       (and narrow consult-narrow-map)
-                      (and preview-key consult-preview-map)
                       map))
       old-map))))
 

Reply via email to