uilayout: remove unused (and undeclared) variable

(integrated from master branch change addecd7 by Todd Whiteman <toddw@activestate.com>)