From c5a922356c4484b8bb7696f084d0aabed1363c95 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 10 Nov 2009 09:30:08 +0100 Subject: [PATCH] Removed unused fwp_vres_get_id() --- fwp/lib/fwp/fwp_vres.c | 5 ----- fwp/lib/fwp/fwp_vres.h | 1 - 2 files changed, 6 deletions(-) diff --git a/fwp/lib/fwp/fwp_vres.c b/fwp/lib/fwp/fwp_vres.c index 64c5a70..5f1394d 100644 --- a/fwp/lib/fwp/fwp_vres.c +++ b/fwp/lib/fwp/fwp_vres.c @@ -197,11 +197,6 @@ int fwp_vres_table_init(unsigned int max_vres) return 0; } -fwp_vres_id_t fwp_vres_get_id(fwp_vres_t *vres) -{ - return (vres - fwp_vres_table.entry); -} - /** * Allocate vres * diff --git a/fwp/lib/fwp/fwp_vres.h b/fwp/lib/fwp/fwp_vres.h index 62561f5..40958cc 100644 --- a/fwp/lib/fwp/fwp_vres.h +++ b/fwp/lib/fwp/fwp_vres.h @@ -88,7 +88,6 @@ struct fwp_vres_params { int fwp_vres_table_init(unsigned int max_vres); fwp_vres_t *fwp_vres_alloc(); -fwp_vres_id_t fwp_vres_get_id(fwp_vres_t *vres); int fwp_vres_set_params(fwp_vres_t *vres, fwp_vres_params_t *params); int fwp_vres_create(fwp_vres_params_t *params, fwp_vres_t **vresp); int fwp_vres_destroy(fwp_vres_t *vres); -- 2.39.2