[4.0] 5209364 Remove the unused per random director struct bitmap
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 15 16:35:43 CET 2015
commit 52093641e20c4f1ce91fb00eefd231f54286798c
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Mon Jan 12 15:06:36 2015 +0100
Remove the unused per random director struct bitmap
diff --git a/lib/libvmod_directors/random.c b/lib/libvmod_directors/random.c
index 8ae36a7..c32167e 100644
--- a/lib/libvmod_directors/random.c
+++ b/lib/libvmod_directors/random.c
@@ -46,7 +46,6 @@ struct vmod_directors_random {
#define VMOD_DIRECTORS_RANDOM_MAGIC 0x4732d092
struct vdir *vd;
unsigned n_backend;
- struct vbitmap *vbm;
};
static unsigned __match_proto__(vdi_healthy)
@@ -85,8 +84,6 @@ vmod_random__init(const struct vrt_ctx *ctx, struct vmod_directors_random **rrp,
AZ(*rrp);
ALLOC_OBJ(rr, VMOD_DIRECTORS_RANDOM_MAGIC);
AN(rr);
- rr->vbm = vbit_init(8);
- AN(rr->vbm);
*rrp = rr;
vdir_new(&rr->vd, vcl_name, vmod_rr_healthy, vmod_rr_getfd, rr);
}
@@ -100,7 +97,6 @@ vmod_random__fini(struct vmod_directors_random **rrp)
*rrp = NULL;
CHECK_OBJ_NOTNULL(rr, VMOD_DIRECTORS_RANDOM_MAGIC);
vdir_delete(&rr->vd);
- vbit_destroy(rr->vbm);
FREE_OBJ(rr);
}
More information about the varnish-commit
mailing list