delete unused window system code