From 63a570ed00ef9ec24791b14c355628eacbb16b82 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sun, 12 Sep 2021 22:20:53 -0700 Subject: [PATCH] UI: Remove unused RemoveSelectedSceneItem slot Appears to be a remnant left by the undo/redo system changes, not used at all by any parts of the UI. This slot does not have undo/redo system functionality, so it is not useful in its current form. --- UI/window-basic-main.cpp | 10 ---------- UI/window-basic-main.hpp | 1 - 2 files changed, 11 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 49e8bbc7c..fe0fcdb76 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -3874,16 +3874,6 @@ void OBSBasic::RemoveSelectedScene() api->on_event(OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED); } -void OBSBasic::RemoveSelectedSceneItem() -{ - OBSSceneItem item = GetCurrentSceneItem(); - if (item) { - obs_source_t *source = obs_sceneitem_get_source(item); - if (QueryRemoveSource(source)) - obs_sceneitem_remove(item); - } -} - void OBSBasic::ReorderSources(OBSScene scene) { if (scene != GetCurrentScene() || ui->sources->IgnoreReorder()) diff --git a/UI/window-basic-main.hpp b/UI/window-basic-main.hpp index 3114a515f..04b3ee9ed 100644 --- a/UI/window-basic-main.hpp +++ b/UI/window-basic-main.hpp @@ -660,7 +660,6 @@ private slots: void DuplicateSelectedScene(); void RemoveSelectedScene(); - void RemoveSelectedSceneItem(); void ToggleAlwaysOnTop();