Simplify slotdefs-for-slots-with-class by using existing function.
authorNathan Bird <nathan@acceleration.net>
Wed, 5 Dec 2012 18:37:49 +0000 (13:37 -0500)
committerNathan Bird <nathan@acceleration.net>
Wed, 5 Dec 2012 22:10:33 +0000 (17:10 -0500)
sql/metaclasses.lisp

index 7a2fce71445b311a62a3dd27a6ad09a0f7f71aad..1c9a6c5b34583fe882886bdb6c65b7ce70f665cd 100644 (file)
@@ -542,9 +542,7 @@ implementations."
 (defun slotdef-for-slot-with-class (slot class)
   (typecase slot
     (standard-slot-definition slot)
-    (symbol
-     (find-if #'(lambda (d) (eql slot (slot-definition-name d)))
-              (class-slots class)))))
+    (symbol (find-slot-by-name class slot))))
 
 #+ignore
 (eval-when (:compile-toplevel :load-toplevel :execute)