diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-11 21:01:09 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-18 21:32:14 +0800 |
commit | 8a102a687f02c9c4014368877bffb3622c482c65 (patch) | |
tree | d5773b7edb0db0e24a9339585048f175a8fab078 /source/fitz | |
parent | ce82537df9e4b832213138d942be4482418b9e50 (diff) | |
download | mupdf-8a102a687f02c9c4014368877bffb3622c482c65.tar.xz |
Internal drop functions don't need to check for NULL.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/glyph.c | 3 | ||||
-rw-r--r-- | source/fitz/list-device.c | 2 |
2 files changed, 0 insertions, 5 deletions
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; |