Get rid of unused code warnings.

svn path=/trunk/; revision=25812
This commit is contained in:
Anders Broman 2008-07-24 00:30:11 +00:00
parent a4d1eb9ee9
commit ff8291413a
2 changed files with 61 additions and 117 deletions

View File

@ -9,6 +9,10 @@ PER
ALIGNED
#.END
#.OMIT_ASSIGNMENT
IrisContinuous
#.END
#.PDU_NEW
RDCPDU
NonCollapsingCapabilities

View File

@ -1,7 +1,7 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
/* packet-h282.c */
/* ../../../svn/trunk/tools/asn2wrs.py -p h282 -c ../../../svn/trunk/asn1/h282/h282.cnf -s ../../../svn/trunk/asn1/h282/packet-h282-template -D ../../../svn/trunk/asn1/h282 RDC-PROTOCOL.asn */
/* ../../tools/asn2wrs.py -p h282 -c h282.cnf -s packet-h282-template RDC-PROTOCOL.asn */
/* Input file: packet-h282-template.c */
@ -244,9 +244,6 @@ static int hf_h282_wide = -1; /* NULL */
static int hf_h282_focusDirection = -1; /* T_focusDirection */
static int hf_h282_near = -1; /* NULL */
static int hf_h282_far = -1; /* NULL */
static int hf_h282_irisDirection = -1; /* T_irisDirection */
static int hf_h282_darker = -1; /* NULL */
static int hf_h282_lighter = -1; /* NULL */
static int hf_h282_relative = -1; /* NULL */
static int hf_h282_absolute = -1; /* NULL */
static int hf_h282_zoomPosition = -1; /* ZoomPosition */
@ -556,8 +553,6 @@ static gint ett_h282_ZoomContinuous = -1;
static gint ett_h282_T_zoomDirection = -1;
static gint ett_h282_FocusContinuous = -1;
static gint ett_h282_T_focusDirection = -1;
static gint ett_h282_IrisContinuous = -1;
static gint ett_h282_T_irisDirection = -1;
static gint ett_h282_PositioningMode = -1;
static gint ett_h282_SetZoomPosition = -1;
static gint ett_h282_SetFocusPosition = -1;
@ -2235,47 +2230,6 @@ dissect_h282_FocusContinuous(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx
}
static const value_string h282_T_irisDirection_vals[] = {
{ 0, "darker" },
{ 1, "lighter" },
{ 2, "stop" },
{ 3, "continue" },
{ 0, NULL }
};
static const per_choice_t T_irisDirection_choice[] = {
{ 0, &hf_h282_darker , ASN1_NO_EXTENSIONS , dissect_h282_NULL },
{ 1, &hf_h282_lighter , ASN1_NO_EXTENSIONS , dissect_h282_NULL },
{ 2, &hf_h282_stop , ASN1_NO_EXTENSIONS , dissect_h282_NULL },
{ 3, &hf_h282_continue , ASN1_NO_EXTENSIONS , dissect_h282_NULL },
{ 0, NULL, 0, NULL }
};
static int
dissect_h282_T_irisDirection(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_choice(tvb, offset, actx, tree, hf_index,
ett_h282_T_irisDirection, T_irisDirection_choice,
NULL);
return offset;
}
static const per_sequence_t IrisContinuous_sequence[] = {
{ &hf_h282_irisDirection , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_h282_T_irisDirection },
{ &hf_h282_timeOut , ASN1_NO_EXTENSIONS , ASN1_NOT_OPTIONAL, dissect_h282_INTEGER_50_1000 },
{ NULL, 0, 0, NULL }
};
static int
dissect_h282_IrisContinuous(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,
ett_h282_IrisContinuous, IrisContinuous_sequence);
return offset;
}
static const value_string h282_PositioningMode_vals[] = {
{ 0, "relative" },
{ 1, "absolute" },
@ -4309,7 +4263,7 @@ static const per_choice_t RequestPDU_choice[] = {
static int
dissect_h282_RequestPDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 20 "h282.cnf"
#line 24 "h282.cnf"
gint32 msg_type = -1;
const gchar *p = NULL;
@ -4317,7 +4271,7 @@ dissect_h282_RequestPDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_,
ett_h282_RequestPDU, RequestPDU_choice,
&msg_type);
#line 23 "h282.cnf"
#line 27 "h282.cnf"
p = match_strval(msg_type, VALS(h282_RequestPDU_vals));
if (p && check_col(actx->pinfo->cinfo, COL_INFO))
col_add_fstr(actx->pinfo->cinfo, COL_INFO, "RequestPDU/%s", p);
@ -4352,7 +4306,7 @@ static const per_choice_t ResponsePDU_choice[] = {
static int
dissect_h282_ResponsePDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 31 "h282.cnf"
#line 35 "h282.cnf"
gint32 msg_type = -1;
const gchar *p = NULL;
@ -4360,7 +4314,7 @@ dissect_h282_ResponsePDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_
ett_h282_ResponsePDU, ResponsePDU_choice,
&msg_type);
#line 34 "h282.cnf"
#line 38 "h282.cnf"
p = match_strval(msg_type, VALS(h282_ResponsePDU_vals));
if (p && check_col(actx->pinfo->cinfo, COL_INFO))
col_add_fstr(actx->pinfo->cinfo, COL_INFO, "ResponsePDU/%s", p);
@ -4387,7 +4341,7 @@ static const per_choice_t IndicationPDU_choice[] = {
static int
dissect_h282_IndicationPDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
#line 42 "h282.cnf"
#line 46 "h282.cnf"
gint32 msg_type = -1;
const gchar *p = NULL;
@ -4395,7 +4349,7 @@ dissect_h282_IndicationPDU(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _
ett_h282_IndicationPDU, IndicationPDU_choice,
&msg_type);
#line 45 "h282.cnf"
#line 49 "h282.cnf"
p = match_strval(msg_type, VALS(h282_IndicationPDU_vals));
if (p && check_col(actx->pinfo->cinfo, COL_INFO))
col_add_fstr(actx->pinfo->cinfo, COL_INFO, "IndicationPDU/%s", p);
@ -5225,18 +5179,6 @@ void proto_register_h282(void) {
{ "far", "h282.far",
FT_NONE, BASE_NONE, NULL, 0,
"h282.NULL", HFILL }},
{ &hf_h282_irisDirection,
{ "irisDirection", "h282.irisDirection",
FT_UINT32, BASE_DEC, VALS(h282_T_irisDirection_vals), 0,
"h282.T_irisDirection", HFILL }},
{ &hf_h282_darker,
{ "darker", "h282.darker",
FT_NONE, BASE_NONE, NULL, 0,
"h282.NULL", HFILL }},
{ &hf_h282_lighter,
{ "lighter", "h282.lighter",
FT_NONE, BASE_NONE, NULL, 0,
"h282.NULL", HFILL }},
{ &hf_h282_relative,
{ "relative", "h282.relative",
FT_NONE, BASE_NONE, NULL, 0,
@ -6283,8 +6225,6 @@ void proto_register_h282(void) {
&ett_h282_T_zoomDirection,
&ett_h282_FocusContinuous,
&ett_h282_T_focusDirection,
&ett_h282_IrisContinuous,
&ett_h282_T_irisDirection,
&ett_h282_PositioningMode,
&ett_h282_SetZoomPosition,
&ett_h282_SetFocusPosition,