mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 01:34:21 +00:00
Remove some compat code from bubbles.el
* lisp/play/bubbles.el (bubbles--remove-overlays): Make into an obsolete alias. (bubbles--initialize, bubbles--show-images): Adjust callers.
This commit is contained in:
parent
74909e1ec2
commit
af6ea5578a
1 changed files with 4 additions and 6 deletions
|
|
@ -976,16 +976,14 @@ Set `bubbles--col-offset' and `bubbles--row-offset'."
|
|||
(* image-vert-size (bubbles--grid-height)))
|
||||
2)))))
|
||||
|
||||
(defun bubbles--remove-overlays ()
|
||||
"Remove all overlays."
|
||||
(if (fboundp 'remove-overlays)
|
||||
(remove-overlays)))
|
||||
(define-obsolete-function-alias 'bubbles--remove-overlays
|
||||
'remove-overlays "28.1")
|
||||
|
||||
(defun bubbles--initialize ()
|
||||
"Initialize Bubbles game."
|
||||
(bubbles--initialize-faces)
|
||||
(bubbles--initialize-images)
|
||||
(bubbles--remove-overlays)
|
||||
(remove-overlays)
|
||||
|
||||
(switch-to-buffer (get-buffer-create "*bubbles*"))
|
||||
(bubbles--compute-offsets)
|
||||
|
|
@ -1409,7 +1407,7 @@ Return t if new char is non-empty."
|
|||
|
||||
(defun bubbles--show-images ()
|
||||
"Update images in the bubbles buffer."
|
||||
(bubbles--remove-overlays)
|
||||
(remove-overlays)
|
||||
(if (and (display-images-p)
|
||||
bubbles--images-ok
|
||||
(not (eq bubbles-graphics-theme 'ascii)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue