Menu

#114 Dead code in ResizeShift.cpp

1.3-dev
open
nobody
Image (41)
5
2009-01-07
2009-01-07
Alby
No

I was just doing a code walk thru and found some dead code in Framewave\domain\fwImage\src\ResizeShift.cpp

Assigning "0" to "flagY" in line 747
int x, y, flagX=0, flagY=0;
On this path, the condition "flagY == 0" could not be false : line number 798
if (flagX == 0 || flagY == 0) return fwStsWrongIntersectQuad; //todo
Cannot reach dead statement "return fwStsNoErr;" after the above one in line number 800 return fwStsNoErr;

Discussion


Log in to post a comment.