X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fbraid.lisp;h=67df45272102a1b1a9b32be269b0354b00b57815;hb=d25e3478acccec70402ff32554669a982be8e281;hp=68daf7f75cb8f3d3eab4724a9017c04924392865;hpb=95f17ca63742f8c164309716b35bc25545a849a6;p=sbcl.git diff --git a/src/pcl/braid.lisp b/src/pcl/braid.lisp index 68daf7f..67df452 100644 --- a/src/pcl/braid.lisp +++ b/src/pcl/braid.lisp @@ -85,20 +85,6 @@ (allocate-standard-funcallable-instance-slots wrapper slots-init-p slots-init)) fin)) - -(defun allocate-structure-instance (wrapper &optional - (slots-init nil slots-init-p)) - (let* ((class (wrapper-class wrapper)) - (constructor (class-defstruct-constructor class))) - (if constructor - (let ((instance (funcall constructor)) - (slots (class-slots class))) - (when slots-init-p - (dolist (slot slots) - (setf (slot-value-using-class class instance slot) - (pop slots-init)))) - instance) - (error "can't allocate an instance of class ~S" (class-name class))))) ;;;; BOOTSTRAP-META-BRAID ;;;;