diff options
author | Eric Wong <e@80x24.org> | 2015-01-20 00:21:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-01-20 00:21:33 +0000 |
commit | 51e6240767b394e255d05a0f712a1da853485e82 (patch) | |
tree | b7582e0265b031c789f86d386fc72688e0069117 /lib | |
parent | 5a0dbfc1cfddd2028ced800fc1f65e1c443126ab (diff) | |
download | dtas-51e6240767b394e255d05a0f712a1da853485e82.tar.gz |
I'm done with dealing with proprietary bug trackers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/buffer.rb | 1 | ||||
-rw-r--r-- | lib/dtas/compat_rbx.rb | 12 | ||||
-rw-r--r-- | lib/dtas/unix_accepted.rb | 1 | ||||
-rw-r--r-- | lib/dtas/unix_client.rb | 1 |
4 files changed, 0 insertions, 15 deletions
diff --git a/lib/dtas/buffer.rb b/lib/dtas/buffer.rb index 4342e5a..3259ca0 100644 --- a/lib/dtas/buffer.rb +++ b/lib/dtas/buffer.rb @@ -2,7 +2,6 @@ # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) require 'io/wait' require_relative '../dtas' -require_relative 'compat_rbx' # IO#nread class DTAS::Buffer # :nodoc: begin 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 <dtas-all@nongnu.org> -# 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/ diff --git a/lib/dtas/unix_accepted.rb b/lib/dtas/unix_accepted.rb index 2dc715d..a590bbe 100644 --- a/lib/dtas/unix_accepted.rb +++ b/lib/dtas/unix_accepted.rb @@ -2,7 +2,6 @@ # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) require 'socket' require 'io/wait' -require_relative 'compat_rbx' class DTAS::UNIXAccepted # :nodoc: attr_reader :to_io diff --git a/lib/dtas/unix_client.rb b/lib/dtas/unix_client.rb index 3bbd4ff..6724501 100644 --- a/lib/dtas/unix_client.rb +++ b/lib/dtas/unix_client.rb @@ -5,7 +5,6 @@ require_relative 'xs' require 'socket' require 'io/wait' require 'shellwords' -require_relative 'compat_rbx' class DTAS::UNIXClient # :nodoc: attr_reader :to_io |