Removed no longer used state restoration code.