From a2139c09b22d1ec75fd36fbb8f7bef83ba5fe27e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 19 Jan 2025 01:44:26 -0600 Subject: [PATCH] [studio] Cleanup unused member --- src/olympic/studio/applib/src/deleteconfirmation.cpp | 3 +-- src/olympic/studio/applib/src/deleteconfirmation.hpp | 3 +-- src/olympic/studio/applib/src/studioapp.hpp | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/olympic/studio/applib/src/deleteconfirmation.cpp b/src/olympic/studio/applib/src/deleteconfirmation.cpp index c81329ee..9eaa591c 100644 --- a/src/olympic/studio/applib/src/deleteconfirmation.cpp +++ b/src/olympic/studio/applib/src/deleteconfirmation.cpp @@ -8,8 +8,7 @@ namespace studio { -DeleteConfirmation::DeleteConfirmation(StudioContext &ctx) noexcept: - m_ctx{ctx} { +DeleteConfirmation::DeleteConfirmation() noexcept { setTitle("Delete Item"); } diff --git a/src/olympic/studio/applib/src/deleteconfirmation.hpp b/src/olympic/studio/applib/src/deleteconfirmation.hpp index 4a03dbc1..012dbcbb 100644 --- a/src/olympic/studio/applib/src/deleteconfirmation.hpp +++ b/src/olympic/studio/applib/src/deleteconfirmation.hpp @@ -21,12 +21,11 @@ class DeleteConfirmation final: public Popup { Stage m_stage = Stage::Closed; bool m_open{}; ox::String m_path; - StudioContext &m_ctx; public: ox::Signal deleteFile; - DeleteConfirmation(StudioContext &ctx) noexcept; + DeleteConfirmation() noexcept; void openPath(ox::StringViewCR path) noexcept; diff --git a/src/olympic/studio/applib/src/studioapp.hpp b/src/olympic/studio/applib/src/studioapp.hpp index c722c608..a0373624 100644 --- a/src/olympic/studio/applib/src/studioapp.hpp +++ b/src/olympic/studio/applib/src/studioapp.hpp @@ -40,7 +40,7 @@ class StudioUI: public ox::SignalHandler { BaseEditor *m_activeEditor = nullptr; BaseEditor *m_activeEditorUpdatePending = nullptr; NewMenu m_newMenu; - DeleteConfirmation m_deleteConfirmation{m_sctx}; + DeleteConfirmation m_deleteConfirmation; NewProject m_newProject; AboutPopup m_aboutPopup; ox::Array const m_popups = {