From: Martin Mares Date: Sun, 23 Jun 2002 16:21:10 +0000 (+0000) Subject: Removed obsolete examples of custom attributes. The image search attributes X-Git-Tag: holmes-import~1392 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=89d14be7e888730e57d3a26b5ddd47d0b659c3cf;p=libucw.git Removed obsolete examples of custom attributes. The image search attributes themselves are a good enough example. --- diff --git a/lib/custom.c b/lib/custom.c index a1aec75f..3e9d19d6 100644 --- a/lib/custom.c +++ b/lib/custom.c @@ -95,27 +95,3 @@ custom_ic_parse(u32 *dest, byte *value, uns intval) } #endif - -#if 0 /* Example */ - -/* FIXME: The example is wrong */ - -void -custom_get_lm(struct card_attr *ca, byte *attr) -{ - if (attr) - ca->lm = atol(attr); - else - ca->lm = 0; -} - -byte * -custom_parse_lm(u32 *dest, byte *value, uns intval) -{ - if (value) - return "LM is an integer, not a string"; - *dest = intval; - return NULL; -} - -#endif diff --git a/lib/custom.h b/lib/custom.h index 226d76d8..eedfe0b2 100644 --- a/lib/custom.h +++ b/lib/custom.h @@ -141,12 +141,6 @@ byte *custom_ic_parse(u32 *dest, byte *value, uns intval); #else -#if 0 - -/* FIXME: Add a simple example */ - -#else - /* No custom attributes defined */ #define CUSTOM_CARD_ATTRS @@ -154,5 +148,3 @@ byte *custom_ic_parse(u32 *dest, byte *value, uns intval); static inline void custom_create_attrs(struct odes *odes UNUSED, struct card_attr *ca UNUSED) { } #endif - -#endif