From 8a102a687f02c9c4014368877bffb3622c482c65 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 11 Oct 2016 21:01:09 +0800 Subject: Internal drop functions don't need to check for NULL. --- source/fitz/glyph.c | 3 --- source/fitz/list-device.c | 2 -- 2 files changed, 5 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/glyph.c b/source/fitz/glyph.c index b76d2f76..efe5bed1 100644 --- a/source/fitz/glyph.c +++ b/source/fitz/glyph.c @@ -18,9 +18,6 @@ static void fz_drop_glyph_imp(fz_context *ctx, fz_storable *glyph_) { fz_glyph *glyph = (fz_glyph *)glyph_; - - if (glyph == NULL) - return; fz_drop_pixmap(ctx, glyph->pixmap); fz_free(ctx, glyph); } diff --git a/source/fitz/list-device.c b/source/fitz/list-device.c index bcc11230..c8b2ced5 100644 --- a/source/fitz/list-device.c +++ b/source/fitz/list-device.c @@ -1263,8 +1263,6 @@ fz_drop_display_list_imp(fz_context *ctx, fz_storable *list_) int cs_n = 1; fz_colorspace *cs; - if (list == NULL) - return; while (node != node_end) { fz_display_node n = *node; -- cgit v1.2.3