Clean some useless code