Fixed dead store analyzer warnings

Removed redundant assignments to local variables that were flagged by Xcode’s static analyzer as dead stores.
This commit is contained in:
Minh Nguyễn 2015-05-06 12:11:20 -07:00
parent 24e4bdd415
commit 37d6fb0955

View file

@ -793,7 +793,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
TESSvertex *v, *vPrev;
TESShalfEdge *e, *ePrev;
fPrev = fHead;
for( fPrev = fHead ; (f = fPrev->next) != fHead; fPrev = f) {
assert( f->prev == fPrev );
e = f->anEdge;
@ -808,7 +807,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
}
assert( f->prev == fPrev && f->anEdge == NULL );
vPrev = vHead;
for( vPrev = vHead ; (v = vPrev->next) != vHead; vPrev = v) {
assert( v->prev == vPrev );
e = v->anEdge;
@ -823,7 +821,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
}
assert( v->prev == vPrev && v->anEdge == NULL );
ePrev = eHead;
for( ePrev = eHead ; (e = ePrev->next) != eHead; ePrev = e) {
assert( e->Sym->next == ePrev->Sym );
assert( e->Sym != e );