Skip to content

Commit

Permalink
moving the deprecation to the new method added
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Sep 21, 2024
1 parent 24f54eb commit 8c52878
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/process/status.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) %}

Check warning on line 211 in src/process/status.cr

View workflow job for this annotation

GitHub Actions / x86_64-windows-release / build

expanding macro
Expand Down

0 comments on commit 8c52878

Please sign in to comment.