[master] c3f399c Remove unused function VRT_MkGethdr()
Poul-Henning Kamp
phk at varnish-cache.org
Wed May 1 14:20:34 CEST 2013
commit c3f399caf21adf3a56ad6d4bfaca43482a66cec4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed May 1 12:20:11 2013 +0000
Remove unused function VRT_MkGethdr()
diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 32764fc..f85669d 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -54,24 +54,6 @@ const void * const vrt_magic_string_unset = &vrt_magic_string_unset;
/*--------------------------------------------------------------------*/
-const struct gethdr_s *
-VRT_MkGethdr(const struct vrt_ctx *ctx, enum gethdr_e where, const char *what)
-{
- struct gethdr_s *retval;
-
- CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
- CHECK_OBJ_NOTNULL(ctx->req, REQ_MAGIC);
- // XXX ?
- retval = (void*)WS_Alloc(ctx->req->wrk->aws, sizeof *retval);
- AN(retval);
- retval->where = where;
- retval->what = what;
- return (retval);
-}
-
-
-/*--------------------------------------------------------------------*/
-
void
VRT_error(const struct vrt_ctx *ctx, unsigned code, const char *reason)
{
diff --git a/include/vrt.h b/include/vrt.h
index 0657e4d..05b6cde 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -207,8 +207,6 @@ int VRT_rewrite(const char *, const char *);
void VRT_error(const struct vrt_ctx *, unsigned, const char *);
int VRT_switch_config(const char *);
-const struct gethdr_s *VRT_MkGethdr(const struct vrt_ctx *,enum gethdr_e,
- const char *);
char *VRT_GetHdr(const struct vrt_ctx *, const struct gethdr_s *);
void VRT_SetHdr(const struct vrt_ctx *, const struct gethdr_s *, const char *, ...);
void VRT_handling(const struct vrt_ctx *, unsigned hand);
More information about the varnish-commit
mailing list