Remove some compat code from smiley.el

* lisp/gnus/smiley.el (smiley-style): face-attribute is always defined.
This commit is contained in:
Lars Ingebrigtsen 2020-08-18 23:15:09 +02:00
parent ace7eeb505
commit 1a31051069

View file

@ -56,14 +56,11 @@
(defvar smiley-data-directory)
(defcustom smiley-style
(if (and (fboundp 'face-attribute)
;; In batch mode, attributes can be unspecified.
(condition-case nil
(>= (face-attribute 'default :height) 160)
(error nil)))
'medium
'low-color)
;; In batch mode, attributes can be unspecified.
(defcustom smiley-style (if (ignore-errors
(>= (face-attribute 'default :height) 160))
'medium
'low-color)
"Smiley style."
:type '(choice (const :tag "small, 3 colors" low-color) ;; 13x14
(const :tag "medium, ~10 colors" medium) ;; 16x16