X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/e2838dc5e1dbdc1558d3ec225fbc9fdd581b5b26..00091ab3d552b0ab7bc177e19e86110d8c1cd20b:/src/class-finalize-impl.lisp diff --git a/src/class-finalize-impl.lisp b/src/class-finalize-impl.lisp index aea5058..a51075b 100644 --- a/src/class-finalize-impl.lisp +++ b/src/class-finalize-impl.lisp @@ -484,18 +484,4 @@ (default-slot (class 'metaclass) (guess-metaclass class)) (:finalized t)))) -(flet ((check-class-is-finalized (class) - (unless (eq (sod-class-state class) :finalized) - (error "Class ~S is not finalized" class)))) - (macrolet ((define-layout-slot (slot (class) &body body) - `(define-on-demand-slot sod-class ,slot (,class) - (check-class-is-finalized ,class) - ,@body))) - (define-layout-slot %ilayout (class) - (compute-ilayout class)) - (define-layout-slot effective-methods (class) - (compute-effective-methods class)) - (define-layout-slot vtables (class) - (compute-vtables class)))) - ;;;----- That's all, folks --------------------------------------------------