(www-get-genre): Abolished.
authorMORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
Thu, 14 Oct 2010 03:01:37 +0000 (12:01 +0900)
committerMORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
Thu, 14 Oct 2010 03:01:37 +0000 (12:01 +0900)
(www-get-feature-value): Don't use `www-get-genre'.

cwiki-common.el

index 2a54841..4e07923 100644 (file)
         (concat dest (substring string i))
         coding-system))))
 
-(defun www-get-genre (object)
-  (if (characterp object)
-      'character
-    'default))
-
 (defun www-feature-type (feature-name)
   (or (char-feature-property feature-name 'type)
       (let ((str (symbol-name feature-name)))
       feature)))
 
 (defun www-get-feature-value (object feature)
-  (let ((genre (www-get-genre object))
-       (latest-feature (char-feature-name-at-domain feature '$rev=latest)))
+  (let ((latest-feature (char-feature-name-at-domain feature '$rev=latest)))
     (cond
-     ((eq genre 'character)
+     ((characterp object)
       (mount-char-attribute-table latest-feature)
       (or (char-feature object latest-feature)
          (char-feature object feature))