Deleted all the non-model-free code from __do_layout().
Authored by: bugman 2010-01-26
Parent: [r10344]
Child: [r10346]