Commit 53ca9ec5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove VSC_Get(), it is not useful and it was never exposed in the

.map file anyway.
parent 53234f7d
......@@ -53,24 +53,6 @@ int VSC_Arg(struct vsm *vd, int arg, const char *opt);
* 1 Handled.
*/
void *VSC_Get(struct vsm *vd, struct VSM_fantom *fantom,
const char *type, const char *ident);
/*
* Looks up the given VSC type and identifier. If fantom is
* non-NULL, it can if successful later be used with
* VSM_StillValid.
*
* Arguments:
* vd: The vsm context
* fantom: Pointer to a fantom. Can be NULL.
* type: The type of the counter segment
* ident: The identifier of the counter segment
*
* Return values:
* NULL: Failure
* non-NULL: A void pointer to the stats structure.
*/
struct VSC_level_desc;
struct VSC_type_desc;
struct VSC_section;
......
......@@ -226,25 +226,6 @@ VSC_Arg(struct vsm *vd, int arg, const char *opt)
}
}
/*--------------------------------------------------------------------
*/
void *
VSC_Get(struct vsm *vd, struct VSM_fantom *fantom, const char *type,
const char *ident)
{
struct VSM_fantom f2 = VSM_FANTOM_NULL;
if (fantom == NULL)
fantom = &f2;
if (VSM_invalid == VSM_StillValid(vd, fantom) &&
!VSM_Get(vd, fantom, VSC_CLASS, type, ident))
return (NULL);
AZ(VSM_Map(vd, fantom));
AN(fantom->b);
return ((void*)((char*)fantom->b + 8));
}
/*--------------------------------------------------------------------*/
static struct vsc_vf *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment