Remove unused lined that results in errors