Fixed and silenced compiler warning

Also removed a senseless line