Remove useless calculations