aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-afs.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2020-04-04 17:53:07 +0200
committerAnders Broman <a.broman58@gmail.com>2020-04-05 08:29:29 +0000
commitcea9793437adaa81f3404453849a15bd15fdd826 (patch)
tree1762fda2d08621e37abb70f29d7f345057f2caf2 /epan/dissectors/packet-afs.c
parent366daf37a0353507d79c4e643a8e9a822d69909d (diff)
afs: remove dead code
Remove some if and switch statements that do nothing. Change-Id: I3de6aaa5a67c96864d6d532e44841bf7d20ec038 Reviewed-on: https://code.wireshark.org/review/36700 Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-afs.c')
-rw-r--r--epan/dissectors/packet-afs.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/epan/dissectors/packet-afs.c b/epan/dissectors/packet-afs.c
index 8b129b856e..d758dca4d9 100644
--- a/epan/dissectors/packet-afs.c
+++ b/epan/dissectors/packet-afs.c
@@ -2716,13 +2716,7 @@ dissect_ubik_request(ptvcursor_t *cursor, struct rxinfo *rxinfo _U_, int opcode)
static void
dissect_backup_reply(ptvcursor_t *cursor, struct rxinfo *rxinfo, int opcode _U_)
{
- if ( rxinfo->type == RX_PACKET_TYPE_DATA )
- {
- switch ( opcode )
- {
- }
- }
- else if ( rxinfo->type == RX_PACKET_TYPE_ABORT )
+ if ( rxinfo->type == RX_PACKET_TYPE_ABORT )
{
ptvcursor_add(cursor, hf_afs_backup_errcode, 4, ENC_BIG_ENDIAN);
}
@@ -2732,23 +2726,13 @@ static void
dissect_backup_request(ptvcursor_t *cursor, struct rxinfo *rxinfo _U_, int opcode _U_)
{
ptvcursor_advance(cursor, 4); /* skip the opcode */
-
- switch ( opcode )
- {
- }
}
static void
dissect_butc_reply(ptvcursor_t *cursor, struct rxinfo *rxinfo, int opcode _U_)
{
- if ( rxinfo->type == RX_PACKET_TYPE_DATA )
- {
- switch ( opcode )
- {
- }
- }
- else if ( rxinfo->type == RX_PACKET_TYPE_ABORT )
+ if ( rxinfo->type == RX_PACKET_TYPE_ABORT )
{
ptvcursor_add(cursor, hf_afs_butc_errcode, 4, ENC_BIG_ENDIAN);
}
@@ -2758,10 +2742,6 @@ static void
dissect_butc_request(ptvcursor_t *cursor, struct rxinfo *rxinfo _U_, int opcode _U_)
{
ptvcursor_advance(cursor, 4); /* skip the opcode */
-
- switch ( opcode )
- {
- }
}
/*
* Dissection routines