From: Michal Sojka Date: Tue, 10 Nov 2009 08:30:08 +0000 (+0100) Subject: Removed unused fwp_vres_get_id() X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fwp.git/commitdiff_plain/c5a922356c4484b8bb7696f084d0aabed1363c95 Removed unused fwp_vres_get_id() --- 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);