[master] 53ca9ec Remove VSC_Get(), it is not useful and it was never exposed in the .map file anyway.

Poul-Henning Kamp phk at FreeBSD.org
Fri Jun 9 07:43:05 CEST 2017


commit 53ca9ec51feb49c3476b017f68f7c2603294b9fc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jun 9 05:41:29 2017 +0000

    Remove VSC_Get(), it is not useful and it was never exposed in the
    .map file anyway.

diff --git a/include/vapi/vsc.h b/include/vapi/vsc.h
index 01427f4..3d74531 100644
--- a/include/vapi/vsc.h
+++ b/include/vapi/vsc.h
@@ -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;
diff --git a/lib/libvarnishapi/vsc.c b/lib/libvarnishapi/vsc.c
index 7a85443..0706a39 100644
--- a/lib/libvarnishapi/vsc.c
+++ b/lib/libvarnishapi/vsc.c
@@ -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 *



More information about the varnish-commit mailing list