remove dead layout code