From 99cc30339d9cb98b240a6e0ef59c333fe3194018 Mon Sep 17 00:00:00 2001 From: jaortega Date: Fri, 1 Dec 2000 23:35:35 +0000 Subject: removed checks for null pointer after g_new () --- mixlib/mix_parser.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'mixlib/mix_parser.c') diff --git a/mixlib/mix_parser.c b/mixlib/mix_parser.c index 80dff45..13df539 100644 --- a/mixlib/mix_parser.c +++ b/mixlib/mix_parser.c @@ -116,12 +116,6 @@ mix_parser_new (const gchar *in_file) if ( f == NULL ) return NULL; result = g_new (mix_parser_t, 1); - if ( result == NULL ) - { - g_warning (_("No system resources")); - mix_file_delete (f); - return NULL; - } result->symbol_table = mix_symbol_table_new (); result->ls_table = mix_symbol_table_new (); result->cur_ls = 0; @@ -496,10 +490,6 @@ mix_parser_add_raw (mix_parser_t *parser, mix_word_t word, guint lineno) if ( parser->status == MIX_PERR_NOCOMP || parser->status == MIX_PERR_OK ) { ins_node_ *node = g_new (ins_node_, 1); - if ( node == NULL ) { - g_warning (_("Unable to allocate memory")); - return; - } node->ins = word; node->lineno = lineno; g_tree_insert (parser->ins_table, (gpointer)((guint)parser->loc_count), -- cgit v1.2.3