branch: externals/ivy-posframe
commit d15c35295815ca5b17df5213f13a5c6896830274
Author: conao3 <[email protected]>
Commit: conao3 <[email protected]>
remove ivy-posframe--poframe-p-advice
---
ivy-posframe.el | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 07e8f4f..53ca92e 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -467,20 +467,6 @@ selection, non-nil otherwise."
;;; Advice
-(defun ivy-posframe--posframe-p-advice (advice-fn &rest args)
- "Advice function of ADVICE-FN, used to bypass the advice from
-`ivy-posframe-advice-alist' if the posframe cannot be displayed.
-
-ADVICE-FN should be a value from `ivy-posframe-advice-alist', but
-the function only errors if ARGS is empty. There should at least be
-the advised function there (a key from `ivy-posframe-advice-alist')."
- (unless (< 0 (length args))
- (error "This function should advise an advice, so args should be at least
a key from ivy-posframe-advice-alist"))
- (if (display-graphic-p)
- (apply advice-fn args)
- (apply (car args) (cdr args)))
- )
-
(defmacro ivy-posframe--defun-advice (name arglist &optional docstring &rest
body)
"Define NAME as a `ivy-posframe' advice function. see `defun'.
The definition is (lambda ARGLIST [DOCSTRING] BODY...).