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:
parent
4433438f92
commit
7a42d2f41d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user