Referencing the name of a type (that is, a symbol) in code means that delivery cannot remove that type even if it is not used anywhere else. This is often seen in code using
subtypep to discriminate between types.
For example, if you have code like this:
(defun foo (x)
(cond ((typep x 'class1) ...)
((typep x 'class2) ...)
((subtypep x 'class1000) ...)))
then delivery would keep all of the classes
class1000 even if nothing else references these classes.
Possible solutions are described in Referencing types via methods and Referencing types via predicates.
Code can reference type names either directly as shown in Avoid referencing type names or via
type-of in code like this:
If you do not wish to retain CLOS, and are referencing types that have built-in predicates, or structure types, you could use these predicates instead of the type names to allow delivery to remove unused types. For example this code:
LispWorks Delivery User Guide - 15 Feb 2015