Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
cb72dc4f
Commit
cb72dc4f
authored
May 26, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unused type_desc
parent
40a253bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
vsc.h
include/vapi/vsc.h
+0
-7
vsc.c
lib/libvarnishapi/vsc.c
+3
-8
No files found.
include/vapi/vsc.h
View file @
cb72dc4f
...
...
@@ -84,16 +84,9 @@ struct VSC_level_desc {
const
char
*
ldesc
;
/* long description */
};
struct
VSC_type_desc
{
const
char
*
label
;
/* label */
const
char
*
sdesc
;
/* short description */
const
char
*
ldesc
;
/* long description */
};
struct
VSC_section
{
char
*
type
;
char
*
ident
;
const
struct
VSC_type_desc
*
desc
;
};
/* See include/tbl/vsc_fields.h for descriptions */
...
...
lib/libvarnishapi/vsc.c
View file @
cb72dc4f
...
...
@@ -113,10 +113,6 @@ struct vsc {
#define VSC_TYPE_F(n,t,l,e,d) const char *VSC_type_##n = t;
#include "tbl/vsc_types.h"
#define VSC_TYPE_F(n,t,l,e,d) \
const struct VSC_type_desc VSC_type_desc_##n = {l,e,d};
#include "tbl/vsc_types.h"
#define VSC_DO(U,l,t,h) const struct VSC_desc VSC_desc_##l[] = {
#define VSC_F(n,t,l,s,f,v,d,e) {#n,#t,s,f,&VSC_level_desc_##v,d,e},
#define VSC_DONE(U,l,t) };
...
...
@@ -264,8 +260,7 @@ VSC_Get(const struct VSM_data *vd, struct VSM_fantom *fantom, const char *type,
/*--------------------------------------------------------------------*/
static
void
vsc_add_vf
(
struct
vsc
*
vsc
,
const
struct
VSM_fantom
*
fantom
,
const
struct
VSC_type_desc
*
desc
,
int
order
)
vsc_add_vf
(
struct
vsc
*
vsc
,
const
struct
VSM_fantom
*
fantom
,
int
order
)
{
struct
vsc_vf
*
vf
,
*
vf2
;
...
...
@@ -274,7 +269,7 @@ vsc_add_vf(struct vsc *vsc, const struct VSM_fantom *fantom,
vf
->
fantom
=
*
fantom
;
REPLACE
(
vf
->
section
.
type
,
vf
->
fantom
.
type
);
REPLACE
(
vf
->
section
.
ident
,
vf
->
fantom
.
ident
);
vf
->
section
.
desc
=
desc
;
//
vf->section.desc = desc;
vf
->
order
=
order
;
VTAILQ_FOREACH
(
vf2
,
&
vsc
->
vf_list
,
list
)
{
...
...
@@ -331,7 +326,7 @@ vsc_build_old_vf_list(struct vsc *vsc)
#define VSC_TYPE_F(n,t,l,e,d) \
if (!strcmp(vsc->iter_fantom.type, t)) \
vsc_add_vf(vsc, &vsc->iter_fantom, \
&VSC_type_desc_##n,
VSC_type_order_##n);
VSC_type_order_##n);
#include "tbl/vsc_types.h"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment