Remove useless conditions