* 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

@ -68,8 +68,7 @@ namespace spot
++s;
delete ptr;
}
if (x)
delete x;
delete x;
// Release all iterators on the stack.
while (!stack.empty())
{
@ -165,8 +164,7 @@ namespace spot
{
if (!has(s, true))
{
if (x)
delete x;
delete x;
x = s->clone();
push(s, true);
continue;