Remove stupid code.

svn path=/trunk/; revision=18148
This commit is contained in:
Anders Broman 2006-05-14 08:17:39 +00:00
parent db2af21552
commit e49fe267e6
2 changed files with 2 additions and 27 deletions

View File

@ -238,18 +238,6 @@ gint pdu_type;
offset = offset + length;
#.FN_BODY TimeTicks
int start_offset;
guint8 octet1,octet2,octet3,octet4;
start_offset = offset;
%(DEFAULT_BODY)s
octet1 = tvb_get_guint8(tvb,start_offset+2);
octet2 = tvb_get_guint8(tvb,start_offset+3);
octet3 = tvb_get_guint8(tvb,start_offset+4);
octet4 = tvb_get_guint8(tvb,start_offset+5);
proto_tree_add_text(tree, tvb, start_offset+2, 4, "Time Ticks: %%u:%%u:%%u:%%u",octet1,octet2,octet3,octet4);
#.TYPE_ATTR
IpAddress TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL

View File

@ -1246,6 +1246,7 @@ dissect_snmp_Empty(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_
return offset;
}
static int dissect_empty(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {
@ -1314,23 +1315,9 @@ static int dissect_counter_value(packet_info *pinfo, proto_tree *tree, tvbuff_t
static int
dissect_snmp_TimeTicks(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) {
#line 242 "snmp.cnf"
int start_offset;
guint8 octet1,octet2,octet3,octet4;
start_offset = offset;
offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_index,
NULL);
octet1 = tvb_get_guint8(tvb,start_offset+2);
octet2 = tvb_get_guint8(tvb,start_offset+3);
octet3 = tvb_get_guint8(tvb,start_offset+4);
octet4 = tvb_get_guint8(tvb,start_offset+5);
proto_tree_add_text(tree, tvb, start_offset+2, 4, "Time Ticks: %u:%u:%u:%u",octet1,octet2,octet3,octet4);
return offset;
}
static int dissect_timeticks_value(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {