Removing unused return statement