Removing more warnings

remove unnecessary check