Removed useless conditions.