* lisp/transient.el (static-if): Remove duplicated definition.
authorJonas Bernoulli <jonas@bernoul.li>
Fri, 19 Jul 2024 17:10:30 +0000 (19:10 +0200)
committerJonas Bernoulli <jonas@bernoul.li>
Fri, 19 Jul 2024 17:10:30 +0000 (19:10 +0200)
(Bug#72182)

This should have been removed when the standalone version was merged
into Emacs.

lisp/transient.el

index 8788fbc834f9f78c628b6775eaa84b56e62e3ce4..14a94434c12605d838ac31bbc9941dc40f777eac 100644 (file)
@@ -82,17 +82,6 @@ similar defect.") :emergency))
 (defvar Man-notify-method)
 (defvar pp-default-function) ; since Emacs 29.1
 
-(defmacro static-if (condition then-form &rest else-forms)
-  "A conditional compilation macro.
-Evaluate CONDITION at macro-expansion time.  If it is non-nil,
-expand the macro to THEN-FORM.  Otherwise expand it to ELSE-FORMS
-enclosed in a `progn' form.  ELSE-FORMS may be empty."
-  (declare (indent 2)
-           (debug (sexp sexp &rest sexp)))
-  (if (eval condition lexical-binding)
-      then-form
-    (cons 'progn else-forms)))
-
 (defmacro transient--with-emergency-exit (id &rest body)
   (declare (indent defun))
   (unless (keywordp id)