From: Christoph Mallon Date: Thu, 14 Apr 2011 12:22:20 +0000 (+0200) Subject: Remove the unused function fail_char(). X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e39b02362169921f82ac6b1070960dca07dd878b;hp=c8aa7d7f197febd4ebd85e66945cc73754c4f92e;p=libfirm Remove the unused function fail_char(). --- diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index 72ab7e70e..c8575ad0a 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -130,20 +130,6 @@ static int max_precision; /** Exact flag. */ static int fc_exact = 1; -#if 0 -static void fail_char(const char *str, unsigned int len, int pos) -{ - if (*(str+pos)) - printf("ERROR: Unexpected character '%c'\n", *(str + pos)); - else - printf("ERROR: Unexpected end of string\n"); - while (len-- && *str) printf("%c", *str++); printf("\n"); - while (pos--) printf(" "); printf("^\n"); - /* the front end has to to check constant strings */ - exit(-1); -} -#endif - /** pack machine-like */ static void *pack(const fp_value *int_float, void *packed) {