Skip to content

Commit ea64cb3

Browse files
committed
Small code cleanup.
1 parent 44b5224 commit ea64cb3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/ruby/truffleruby/core/posix.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
214214
attach_function :open, [:string, :int, varargs(:mode_t)], :int
215215
attach_function :opendir, [:string], :pointer
216216
attach_function :pipe, [:pointer], :int
217-
poll_args = [:pointer, :long, :int]
218-
attach_function :poll, poll_args, :int, LIBC, true
217+
attach_function :poll, [:pointer, :long, :int], :int, LIBC, true
219218
attach_function :read, [:int, :pointer, :size_t], :ssize_t, LIBC, true
220219
attach_function :readlink, [:string, :pointer, :size_t], :ssize_t
221220
attach_function :realpath, [:string, :pointer], :pointer
@@ -243,9 +242,6 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
243242
# We should capture the non-lazy method
244243
attach_function_eagerly :truffleposix_select, select_args, :int, LIBTRUFFLEPOSIX, false, :truffleposix_select, self
245244
SELECT = method(:truffleposix_select)
246-
247-
attach_function_eagerly :poll, poll_args, :int, LIBC, true, :poll, self
248-
POLL = method(:poll)
249245
end
250246
end
251247

0 commit comments

Comments
 (0)