upstream.rbi: remove Fiddle constants

These should no longer be needed after #18501.
This commit is contained in:
Carlo Cabrera 2024-10-04 15:28:27 +08:00
parent 526e3c7bc8
commit 4a6d8698ef
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -2,17 +2,3 @@
# This file contains temporary definitions for fixes that have
# been submitted upstream to https://github.com/sorbet/sorbet.
# Missing constants we use in `linkage_checker.rb`
# https://github.com/sorbet/sorbet/pull/8215
module Fiddle
# [`TYPE_BOOL`](https://github.com/ruby/fiddle/blob/v1.1.2/ext/fiddle/fiddle.h#L129)
#
# C type - bool
TYPE_BOOL = T.let(T.unsafe(nil).freeze, Integer)
# [`TYPE_CONST_STRING`](https://github.com/ruby/fiddle/blob/v1.1.2/ext/fiddle/fiddle.h#L128)
#
# C type - char\*
TYPE_CONST_STRING = T.let(T.unsafe(nil).freeze, Integer)
end