From 045eaa1576ddbf50c49c986fad00295a11a00b08 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 11 Aug 2025 11:30:07 +0200 Subject: [PATCH] LibLine: Remove unnecessary use of EventReceiver parent/child API --- Libraries/LibLine/InternalFunctions.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibLine/InternalFunctions.cpp b/Libraries/LibLine/InternalFunctions.cpp index a07895ee118..16bd7059df3 100644 --- a/Libraries/LibLine/InternalFunctions.cpp +++ b/Libraries/LibLine/InternalFunctions.cpp @@ -309,7 +309,6 @@ void Editor::enter_search() m_search_editor = Editor::construct(Configuration { Configuration::Eager, Configuration::NoSignalHandlers }); // Has anyone seen 'Inception'? m_search_editor->initialize(); - add_child(*m_search_editor); m_search_editor->on_display_refresh = [this](Editor& search_editor) { // Remove the search editor prompt before updating ourselves (this avoids artifacts when we move the search editor around). @@ -402,7 +401,6 @@ void Editor::enter_search() // Grab where the search origin last was, anything up to this point will be cleared. auto search_end_row = m_search_editor->m_origin_row; - remove_child(*m_search_editor); m_search_editor = nullptr; m_is_searching = false; m_is_editing = true;