Fix compiler warning.
Remove some unneeded code.