diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-08-08 21:39:00 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-08-08 21:39:00 +0300 |
commit | 9949d5a089ce89f102d3c84a256f8933f235fc21 (patch) | |
tree | c6aa169418781f7abd6b7a8a0aefe3dafe570508 /platform/macos/os_macos.mm | |
parent | 739019e4e4a6e4763e37adfd9883a1c85d5f6249 (diff) | |
download | redot-engine-9949d5a089ce89f102d3c84a256f8933f235fc21.tar.gz |
[macOS] Remove kill override.
Diffstat (limited to 'platform/macos/os_macos.mm')
-rw-r--r-- | platform/macos/os_macos.mm | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/platform/macos/os_macos.mm b/platform/macos/os_macos.mm index 495246344b..3a82514766 100644 --- a/platform/macos/os_macos.mm +++ b/platform/macos/os_macos.mm @@ -675,18 +675,6 @@ bool OS_MacOS::is_process_running(const ProcessID &p_pid) const { return ![app isTerminated]; } -Error OS_MacOS::kill(const ProcessID &p_pid) { - NSRunningApplication *app = [NSRunningApplication runningApplicationWithProcessIdentifier:(pid_t)p_pid]; - if (!app) { - return OS_Unix::kill(p_pid); - } - bool terminated = [app terminate]; - if (!terminated) { - terminated = [app forceTerminate]; - } - return terminated ? OK : ERR_INVALID_PARAMETER; -} - String OS_MacOS::get_unique_id() const { static String serial_number; |