diff --git a/Ladybird/HelperProcess.cpp b/Ladybird/HelperProcess.cpp index 5c8e1bec3db..57116233c94 100644 --- a/Ladybird/HelperProcess.cpp +++ b/Ladybird/HelperProcess.cpp @@ -6,23 +6,8 @@ #include "HelperProcess.h" #include "Utilities.h" -#include #include -ErrorOr spawn_helper_process(StringView process_name, ReadonlySpan arguments, Core::System::SearchInPath search_in_path, Optional> environment) -{ - auto paths = TRY(get_paths_for_helper_process(process_name)); - VERIFY(!paths.is_empty()); - ErrorOr result; - for (auto const& path : paths) { - result = Core::System::exec(path, arguments, search_in_path, environment); - if (!result.is_error()) - break; - } - - return result; -} - ErrorOr> get_paths_for_helper_process(StringView process_name) { auto application_path = TRY(ak_string_from_qstring(QCoreApplication::applicationDirPath())); diff --git a/Ladybird/HelperProcess.h b/Ladybird/HelperProcess.h index 6a42701ec23..9ad4fe10efc 100644 --- a/Ladybird/HelperProcess.h +++ b/Ladybird/HelperProcess.h @@ -12,5 +12,4 @@ #include #include -ErrorOr spawn_helper_process(StringView process_name, ReadonlySpan arguments, Core::System::SearchInPath, Optional> environment = {}); ErrorOr> get_paths_for_helper_process(StringView process_name);