From 89d14be7e888730e57d3a26b5ddd47d0b659c3cf Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 23 Jun 2002 16:21:10 +0000 Subject: [PATCH] Removed obsolete examples of custom attributes. The image search attributes themselves are a good enough example. --- lib/custom.c | 24 ------------------------ lib/custom.h | 8 -------- 2 files changed, 32 deletions(-) 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 -- 2.39.2