Remove some unused codes;
Fixed a place that maybe the tester code first time run is optimized in Release mode.

Signed-off-by: shines77 <gz_shines@msn.com>