Removes unused objects in SceneEditor.