diff --git a/Libraries/LibCore/Process.cpp b/Libraries/LibCore/Process.cpp index f8efdc6abf8..3d630a04e9c 100644 --- a/Libraries/LibCore/Process.cpp +++ b/Libraries/LibCore/Process.cpp @@ -158,26 +158,6 @@ ErrorOr Process::spawn(StringView path, ReadonlySpan argument return process.pid(); } -ErrorOr Process::spawn(StringView path, ReadonlySpan arguments, ByteString working_directory, KeepAsChild keep_as_child) -{ - Vector backing_strings; - backing_strings.ensure_capacity(arguments.size()); - for (auto const& argument : arguments) - backing_strings.append(argument); - - auto process = TRY(spawn({ - .executable = path, - .arguments = backing_strings, - .working_directory = working_directory.is_empty() ? Optional {} : Optional { working_directory }, - })); - - if (keep_as_child == KeepAsChild::No) - TRY(process.disown()); - else - process.m_should_disown = false; - return process.pid(); -} - ErrorOr Process::get_name() { #if defined(AK_OS_SERENITY) diff --git a/Libraries/LibCore/Process.h b/Libraries/LibCore/Process.h index 144aab88274..8a63825f727 100644 --- a/Libraries/LibCore/Process.h +++ b/Libraries/LibCore/Process.h @@ -78,9 +78,6 @@ public: static ErrorOr spawn(StringView path, ReadonlySpan arguments, ByteString working_directory = {}, KeepAsChild keep_as_child = KeepAsChild::No); static ErrorOr spawn(StringView path, ReadonlySpan arguments, ByteString working_directory = {}, KeepAsChild keep_as_child = KeepAsChild::No); - // FIXME: Remove this. char const* should not exist on this level of abstraction. - static ErrorOr spawn(StringView path, ReadonlySpan arguments = {}, ByteString working_directory = {}, KeepAsChild keep_as_child = KeepAsChild::No); - static ErrorOr get_name(); enum class SetThreadName { No,