From cb07214229d74c47cccb58ec046d3efc27609519 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 19 May 2010 17:00:04 +0000 Subject: [PATCH] git rid of old commented-out code [r27550] --- include/libfirm/field_temperature.h | 8 ----- ir/ana/field_temperature.c | 45 ----------------------------- ir/ir/irdumptxt.c | 2 -- 3 files changed, 55 deletions(-) diff --git a/include/libfirm/field_temperature.h b/include/libfirm/field_temperature.h index 081183bf5..19e8c867e 100644 --- a/include/libfirm/field_temperature.h +++ b/include/libfirm/field_temperature.h @@ -108,12 +108,4 @@ typedef enum { temperature_inconsistent } irp_temperature_state; -#if 0 - -/** An auxiliary/temporary function */ -int is_jack_rts_class(ir_type *t); -int is_jack_rts_entity(ir_entity *e); - -#endif - #endif diff --git a/ir/ana/field_temperature.c b/ir/ana/field_temperature.c index f930fe027..71f24fa6a 100644 --- a/ir/ana/field_temperature.c +++ b/ir/ana/field_temperature.c @@ -381,49 +381,4 @@ double get_entity_estimated_n_dyncalls(ir_entity *ent) return n_calls; } -#if 0 -/* Move this to the jack compiler */ - -/* ------------------------------------------------------------------------- */ -/* Auxiliary */ -/* ------------------------------------------------------------------------- */ - -int is_jack_rts_name(ident *name) -{ - if (id_is_suffix(new_id_from_str("Exception"), name)) return 1; - if (id_is_suffix(new_id_from_str("Throwable"), name)) return 1; - if (id_is_suffix(new_id_from_str("Error"), name)) return 1; - - return 0; - - if (id_is_prefix(new_id_from_str("java/"), name)) return 1; - if (id_is_prefix(new_id_from_str("["), name)) return 1; - if (id_is_prefix(new_id_from_str("gnu/"), name)) return 1; - if (id_is_prefix(new_id_from_str("java/"), name)) return 1; - if (id_is_prefix(new_id_from_str("CStringToCoreString"), name)) return 1; - - return 0; -} - - -int is_jack_rts_class(ir_type *t) -{ - ident *name = get_type_ident(t); - return is_jack_rts_name(name); -} - -#include "entity_t.h" // for the assertion. - -int is_jack_rts_entity(ir_entity *e) -{ - ident *name; - - assert(e->ld_name); - name = get_entity_ld_ident(e); - - return is_jack_rts_name(name); -} - -#endif /* if 0 */ - #endif diff --git a/ir/ir/irdumptxt.c b/ir/ir/irdumptxt.c index 685739703..bdd2ac279 100644 --- a/ir/ir/irdumptxt.c +++ b/ir/ir/irdumptxt.c @@ -1229,8 +1229,6 @@ void dump_types_as_text(unsigned verbosity, const char *suffix) for (i = 0; i < n_types; ++i) { ir_type *t = get_irp_type(i); - //if (is_jack_rts_class(t)) continue; - dump_type_to_file(F, t, verbosity); } -- 2.20.1