geoip: remove unused code and unneeded per-info refcount

- freeing userspace memory is not the kernel's job, really.
- checkentry is called exactly once, as is destroy.
This commit is contained in:
Jan Engelhardt
2008-03-17 12:49:28 +01:00
parent 3554e348bc
commit f1615a03f3
3 changed files with 0 additions and 67 deletions

View File

@@ -53,12 +53,6 @@ static struct option geoip_opts[] = {
{ 0 },
};
/* NOT IMPLEMENTED YET
static void geoip_free(struct geoip_info *oldmem)
{
}
*/
struct geoip_index {
u_int16_t cc;
u_int32_t offset;
@@ -250,9 +244,6 @@ geoip_parse(int c, char **argv, int invert, unsigned int *flags,
info->count = parse_geoip_cc(argv[optind-1], info->cc, info->mem);
info->flags = *flags;
info->refcount = NULL;
//info->fini = &geoip_free;
return 1;
}