From 51e6240767b394e255d05a0f712a1da853485e82 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 20 Jan 2015 00:21:33 +0000 Subject: drop Rubinius workaround I'm done with dealing with proprietary bug trackers. --- lib/dtas/compat_rbx.rb | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 lib/dtas/compat_rbx.rb (limited to 'lib/dtas/compat_rbx.rb') diff --git a/lib/dtas/compat_rbx.rb b/lib/dtas/compat_rbx.rb deleted file mode 100644 index 7938959..0000000 --- a/lib/dtas/compat_rbx.rb +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) - -# ref: https://github.com/rubysl/rubysl-io-wait/issues/1 -# this ignores buffers and is Linux-only -class IO - def nread - buf = "\0" * 8 - ioctl(0x541B, buf) - buf.unpack("l_")[0] - end -end if ! IO.method_defined?(:nread) && RUBY_PLATFORM =~ /linux/ -- cgit v1.2.3-24-ge0c7