mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lisp/emacs-lisp/cl-preloaded.el (cl--direct-subtypes-of-type): Remove.
This commit is contained in:
parent
4a0d430bdc
commit
80dce18a39
1 changed files with 5 additions and 9 deletions
|
|
@ -86,15 +86,11 @@ Each sublist is in the form (TYPE . DIRECT_SUBTYPES)"
|
|||
(make-hash-table :test #'eq)
|
||||
"Hash table TYPE -> SUPERTYPES.")
|
||||
|
||||
(defconst cl--direct-subtypes-of-type
|
||||
(make-hash-table :test #'eq)
|
||||
"Hash table TYPE -> SUBTYPES.")
|
||||
|
||||
(cl-loop for (parent . children) in cl--type-hierarchy
|
||||
do (cl-loop
|
||||
for child in children
|
||||
do (cl-pushnew parent (gethash child cl--direct-supertypes-of-type))
|
||||
do (cl-pushnew child (gethash parent cl--direct-subtypes-of-type))))
|
||||
(cl-loop
|
||||
for (parent . children) in cl--type-hierarchy
|
||||
do (cl-loop
|
||||
for child in children
|
||||
do (cl-pushnew parent (gethash child cl--direct-supertypes-of-type))))
|
||||
|
||||
(defconst cl--typeof-types nil
|
||||
"Alist of supertypes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue