From 6757c48602d9bfaf2aa50088d26824d8281365cc Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 1 Dec 2012 22:26:55 +0100 Subject: [PATCH] cmpp, remove dead code --- src/xspice/cmpp/pp_mod.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/xspice/cmpp/pp_mod.c b/src/xspice/cmpp/pp_mod.c index a890bd35e..0f9a1de44 100644 --- a/src/xspice/cmpp/pp_mod.c +++ b/src/xspice/cmpp/pp_mod.c @@ -158,19 +158,6 @@ void preprocess_mod_file ( fprintf (mod_yyout, "#line 1 \"%s\"\n", filename); mod_yylineno = 1; - if (!mod_yyin) { - sprintf (error_str, "Could not open .mod file: \"%s\"", filename); - print_error (error_str); - unlink (output_filename); - exit(1); - } - if (!mod_yyout) { - sprintf (error_str, "Could not create .c file: \"%s\"", - output_filename); - print_error (error_str); - unlink (output_filename); - exit(1); - } if (mod_yyparse() || (mod_num_errors > 0)) { sprintf (error_str, "Error parsing .mod file: \"%s\"", filename);