1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Clean out some unused variables

This commit is contained in:
Jonas Fonseca 2006-06-06 16:33:16 +02:00 committed by Jonas Fonseca
parent 4433438f92
commit 7a42d2f41d
2 changed files with 1 additions and 9 deletions

View File

@ -130,7 +130,6 @@ static struct option_info mailcap_options[] = {
/* State variables */
static struct hash *mailcap_map = NULL;
static int mailcap_map_size = 0;
static inline void
@ -195,7 +194,6 @@ add_mailcap_entry(struct mailcap_entry *entry, unsigned char *type, int typelen)
}
add_to_list_end(mitem->entries, entry);
mailcap_map_size++;
}
/* Parsing of a RFC1524 mailcap file */
@ -439,7 +437,6 @@ done_mailcap(struct module *module)
}
free_hash(&mailcap_map);
mailcap_map_size = 0;
}
#ifndef TEST_MAILCAP

View File

@ -67,7 +67,6 @@ static struct option_info mimetypes_options[] = {
/* State variables */
static struct hash *mimetypes_map = NULL;
static int mimetypes_map_size = 0;
static void
@ -123,10 +122,7 @@ parse_mimetypes_extensions(unsigned char *token, unsigned char *ctype)
item = add_hash_item(mimetypes_map, entry->extension, extlen,
entry);
if (item)
mimetypes_map_size++;
else
if (!item)
done_mimetypes_entry(entry);
}
}
@ -208,7 +204,6 @@ done_mimetypes(struct module *module)
}
free_hash(&mimetypes_map);
mimetypes_map_size = 0;
}
static int