Skip to content

Commit

Permalink
Remove lookup-type function. translate machinery will be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
davazp committed Aug 19, 2010
1 parent 7f66dd3 commit b3360bf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions types.lisp
Expand Up @@ -46,14 +46,6 @@
(defgeneric parse-value (string type &rest params &key &allow-other-keys))
(defgeneric parse-values (string type &rest params &key &allow-other-keys))

(defun lookup-type (string)
(find-symbol (string-upcase string) :cl-icalendar))

(defmethod parse-value (string (typestring string) &rest params)
(let ((type (lookup-type typestring)))
(if (null type)
(no-applicable-method 'parse-value string typestring)
(apply #'parse-value string type params))))

;;; Wrapper for both standard as user-defined format-value and
;;; parse-value methods. The :around methods are used to implement
Expand Down Expand Up @@ -82,9 +74,6 @@

;;; Multiple-value versions

(defmethod parse-values (string (typestring string) &rest params)
(apply #'parse-values string (lookup-type typestring) params))

(defmethod parse-values (string (type symbol) &rest params)
(labels (;; Find the position of the separator character (,) from
;; the character at START position.
Expand Down

0 comments on commit b3360bf

Please sign in to comment.