Retirando as refs inuteis