Skip to content

Commit

Permalink
Do not validate by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davazp committed Feb 13, 2012
1 parent b6fcba0 commit 4a41a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@

(defgeneric delete-subcomponent-from-component (subcomponent component)
(:method ((subcomponent component) (component component))
(setf (subcomponents component)
(delete subcomponent (subcomponents component)))))
(setf (subcomponents component) (delete subcomponent (subcomponents component)))))


;;; Add the property named NAME, with the given PARAMETERS and VALUE
Expand Down Expand Up @@ -128,7 +127,6 @@
(unless (string-ci= begin-mark end-mark)
(error "A END:~:@(~a~) was expected, but it found a END:~a"
begin-mark end-mark)))
(validate-component component)
component))
((string-ci= name "END")
(check-type params null)
Expand Down Expand Up @@ -166,8 +164,10 @@
(defgeneric validate-component (component)
(:method ((component component))
(do-property (prop component)
(validate-property prop)
(validate-property-in-component component prop))
(dolist (comp (subcomponents component))
(validate-component comp)
(validate-subcomponent-in-component component comp))
(validate-property-constrains component)))

Expand Down
1 change: 0 additions & 1 deletion property.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
(let* ((property-class (find-property-class property-name))
(prop (allocate-property property-class property-name parameters)))
(initialize-property prop value)
(validate-property prop)
prop)))


Expand Down

0 comments on commit 4a41a10

Please sign in to comment.