aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2017-05-07 13:53:22 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2017-05-07 15:34:23 +0000
commit8657646e0b2ee68de0defa1f9d9fd7ed23ba126f (patch)
tree8670ba123ddfd94d744b80f764b7c3e207e37fa1
parent47b1a98f09b81ad8d090a01d73eda1ebc7b1abc6 (diff)
gif: remove pointless coments, unused debug macro
Change-Id: Id4ac23a7e5164e40ddc0ee22ddb62f7121b74ad9 Reviewed-on: https://code.wireshark.org/review/21543 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
-rw-r--r--epan/dissectors/file-gif.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/epan/dissectors/file-gif.c b/epan/dissectors/file-gif.c
index eb10883192..1fd748d3cc 100644
--- a/epan/dissectors/file-gif.c
+++ b/epan/dissectors/file-gif.c
@@ -31,8 +31,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* Edit this file with 4-space indentation */
-
#define NEW_PROTO_TREE_API
#include "config.h"
@@ -44,20 +42,6 @@
void proto_register_gif(void);
void proto_reg_handoff_gif(void);
-/* General-purpose debug logger.
- * Requires double parentheses because of variable arguments of printf().
- *
- * Enable debug logging for GIF by defining AM_CFLAGS
- * so that it contains "-DDEBUG_image_gif" or "-DDEBUG_image"
- */
-#if (defined(DEBUG_image_gif) || defined(DEBUG_image))
-#define DebugLog(x) \
- g_print("%s:%u: ", __FILE__, __LINE__); \
- g_print x
-#else
-#define DebugLog(x) ;
-#endif
-
#define IMG_GIF "image-gif"
/************************** Variable declarations **************************/
@@ -317,7 +301,7 @@ dissect_gif(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
proto_item *ti;
proto_tree *gif_tree; /* Main GIF tree */
- proto_tree *subtree; /* Main GIF tree */
+ proto_tree *subtree;
guint offset = 0, len = 0;
guint8 peek;
gboolean color_map_present;