From 8c52878c02ee1451dfa9213253c8c576587f4e07 Mon Sep 17 00:00:00 2001 From: Jeremy Woertink Date: Sat, 21 Sep 2024 08:52:06 -0700 Subject: [PATCH] moving the deprecation to the new method added --- src/process/status.cr | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/process/status.cr b/src/process/status.cr index bb77ce2ef640..46d1ed342ee8 100644 --- a/src/process/status.cr +++ b/src/process/status.cr @@ -97,6 +97,7 @@ end class Process::Status # Platform-specific exit status code, which usually contains either the exit code or a termination signal. # The other `Process::Status` methods extract the values from `exit_status`. + @[Deprecated("Use `Process::Status#exit_code`")] def exit_status : Int32 @exit_status.to_i32! end @@ -205,13 +206,6 @@ class Process::Status {% end %} end - # Platform-specific exit status code, which usually contains either the exit code or a termination signal. - # The other `Process::Status` methods extract the values from `exit_status`. - @[Deprecated("Use `Process::Status#exit_code`")] - def exit_status - @exit_status - end - # If `normal_exit?` is `true`, returns the exit code of the process. def exit_code : Int32 {% if flag?(:unix) %}