From 1fab71137fb79df949ff8d4ad145f5f3d18becad Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 6 Dec 2011 15:46:44 +0000 Subject: Remove dead (duplicated) code from pdf_fontfile.c 2 if clauses were (harmlessly) duplicated in pdf_find_builtin_font, probably due to an automated code merge (or other cut/paste error). --- pdf/pdf_fontfile.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pdf') diff --git a/pdf/pdf_fontfile.c b/pdf/pdf_fontfile.c index fb85bee4..543ce763 100644 --- a/pdf/pdf_fontfile.c +++ b/pdf/pdf_fontfile.c @@ -18,14 +18,6 @@ unsigned char * pdf_find_builtin_font(char *name, unsigned int *len) { - if (!strcmp("Courier", name)) { - *len = sizeof pdf_font_NimbusMonL_Regu; - return (unsigned char*) pdf_font_NimbusMonL_Regu; - } - if (!strcmp("Courier-Bold", name)) { - *len = sizeof pdf_font_NimbusMonL_Bold; - return (unsigned char*) pdf_font_NimbusMonL_Bold; - } if (!strcmp("Courier", name)) { *len = sizeof pdf_font_NimbusMonL_Regu; return (unsigned char*) pdf_font_NimbusMonL_Regu; -- cgit v1.2.3