]> code.citadel.org Git - citadel.git/commitdiff
* That was stupid.
authorArt Cancro <ajc@citadel.org>
Wed, 13 Feb 2002 22:15:11 +0000 (22:15 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 13 Feb 2002 22:15:11 +0000 (22:15 +0000)
citadel/ChangeLog
citadel/vcard.c
citadel/vcard.h

index 58874085ce08413ccf74bc9e3790e385de08827d..bbab50b7fdbe45388b8dd5ff651c9deba29d2fab 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 590.112  2002/02/13 22:15:10  ajc
+ * That was stupid.
+
  Revision 590.111  2002/02/13 22:04:11  ajc
  * added vcard_to_html() function
 
@@ -3337,3 +3340,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index ce93ada3a51d43de352c1bb0439eb150e380c4d4..9e7aeded4e6ac139cee07863c02d0be80627ed4e 100644 (file)
@@ -183,39 +183,6 @@ void vcard_free(struct vCard *v) {
 }
 
 
-/*
- * Experimental output type of thing
- */
-char *vcard_to_html(struct vCard *v) {
-       char *html = NULL;
-       int i;
-       size_t len = 256;
-
-       if (v == NULL) return NULL;
-
-       if (v->numprops) for (i=0; i<(v->numprops); ++i) {
-               len += strlen(v->prop[i].name);
-               len += strlen(v->prop[i].value);
-       }
-
-       html = mallok(len);
-       if (html == NULL) return NULL;
-
-       sprintf(html, "<TABLE bgcolor=#888888>");
-       if (v->numprops) for (i=0; i<(v->numprops); ++i) {
-               sprintf(&html[strlen(html)],
-                       "<TR><TD>%s</TD><TD>%s</TD></TR>\n",
-                       v->prop[i].name,
-                       v->prop[i].value
-               );
-       }
-
-       strcat(html, "</TABLE>");
-
-       return(html);
-}
-
-
 
 
 /*
index 2173085ef6234c1069430d6e2a1af53fd7b6febe..743efa99063c2c415d8167f74239af4b74a54e31 100644 (file)
@@ -31,4 +31,3 @@ void vcard_set_prop(struct vCard *v, char *name, char *value, int append);
 char *vcard_get_prop(struct vCard *v, char *propname, int is_partial,
                        int instance);
 char *vcard_serialize(struct vCard *);
-char *vcard_to_html(struct vCard *);