Remove useless layout code