Remove useless logic.