* src/sanity/style.test: Diagnose superfluous constructs such

as `if (x) delete x;'.
* iface/gspn/gspn.cc, iface/gspn/ssp.cc, src/ltlvisit/basicreduce.cc,
src/tgba/tgba.cc, src/tgba/tgbaproduct.cc, src/tgbaalgos/magic.cc,
src/tgbatest/ltl2tgba.cc: Remove such constructs.
This commit is contained in:
Alexandre Duret-Lutz 2004-10-29 14:29:02 +00:00
parent 4654da9ab5
commit 55014e9dcc
9 changed files with 62 additions and 71 deletions

View file

@ -175,10 +175,8 @@ namespace spot
tgba_gspn_private_::~tgba_gspn_private_()
{
dict->unregister_all_my_variables(this);
if (last_state_conds_input)
delete last_state_conds_input;
if (all_indexes)
delete[] all_indexes;
delete last_state_conds_input;
delete[] all_indexes;
}
bdd index_to_bdd(AtomicProp index) const
@ -213,8 +211,7 @@ namespace spot
}
satisfy_free(cube);
if (last_state_conds_input)
delete last_state_conds_input;
delete last_state_conds_input;
last_state_conds_input = s->clone();
}
return last_state_conds_output;

View file

@ -162,8 +162,7 @@ namespace spot
tgba_gspn_ssp_private_::~tgba_gspn_ssp_private_()
{
dict->unregister_all_my_variables(this);
if (all_props)
delete[] all_props;
delete[] all_props;
}
};