]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Removed unused fwp_vres_get_id()
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Nov 2009 08:30:08 +0000 (09:30 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Nov 2009 08:30:23 +0000 (09:30 +0100)
fwp/lib/fwp/fwp_vres.c
fwp/lib/fwp/fwp_vres.h

index 64c5a70ad124e20c89092a839b8e8c6929a190c4..5f1394dc97e4717eefb78228de3d5864bfa0c75d 100644 (file)
@@ -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
  *
index 62561f56ea66fce1139133f716c3980960114723..40958ccb7775209b49caa2528f32c421cd6f4a90 100644 (file)
@@ -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);