Skip to content

Commit 0edc91b

Browse files
committed
Remove references to the old Data class
1 parent 1d6a15b commit 0edc91b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/truffle/socket/ifaddr.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

3030
class Socket < BasicSocket
31-
class Ifaddr < Data
31+
class Ifaddr
3232
attr_reader :addr, :broadaddr, :dstaddr, :flags, :ifindex, :name, :netmask
3333

3434
def initialize(addr: nil, broadaddr: nil, dstaddr: nil, flags: nil, ifindex: nil, name: nil, netmask: nil)

lib/truffle/truffle/cext.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ module Truffle::CExt
107107
RUBY_FIXNUM_MAX = (1 << 62) - 1
108108

109109
# This list of types is derived from MRI's error.c builtin_types array.
110+
# It has the same indices as the ruby_value_type enum.
110111
BUILTIN_TYPES = [
111112
'',
112113
'Object',
@@ -342,8 +343,6 @@ def rb_tr_find_type(value)
342343
T_FIXNUM
343344
when Time
344345
T_DATA
345-
when Data
346-
T_DATA
347346
when BasicObject
348347
# See #rb_tr_cached_type, the final type must be calculated for each object.
349348
T_NONE

src/main/java/org/truffleruby/core/CoreLibrary.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ public CoreLibrary(RubyContext context, RubyLanguage language) {
389389
arrayClass = defineClass("Array");
390390
bindingClass = defineClass("Binding");
391391
defineClass("ConditionVariable");
392-
defineClass("Data"); // Needed by Socket::Ifaddr and defined in core MRI
393392
dirClass = defineClass("Dir");
394393
encodingClass = defineClass("Encoding");
395394
enumeratorClass = defineClass("Enumerator");

0 commit comments

Comments
 (0)