From 19e29f228f253b97a5888f8fea8da2034357d933 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Fri, 11 Jul 2008 18:56:03 +0000 Subject: Remove some dead (statement not reached) code (while trying to avoid any false control reaches end of non-void function warnings) svn path=/trunk/; revision=25706 --- epan/dissectors/packet-bittorrent.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'epan/dissectors/packet-bittorrent.c') diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c index ec73e179e4..95c574148c 100644 --- a/epan/dissectors/packet-bittorrent.c +++ b/epan/dissectors/packet-bittorrent.c @@ -488,12 +488,8 @@ static int dissect_bencoding_rec(tvbuff_t *tvb, packet_info *pinfo _U_, if (tree) { proto_tree_add_text(tree, tvb, offset, -1, "Decode Aborted: Invalid Bencoding"); } - return -1; } - if (tree) { - proto_tree_add_text(tree, tvb, offset, -1, "Decode Aborted: Internal Error"); - } return -1; } -- cgit v1.2.3