remove useless case in #resolve_layout.