summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/value.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/lib/dl/value.rb')
-rw-r--r--ext/dl/lib/dl/value.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb
index c613afe5cf1..cc6da6a7fb9 100644
--- a/ext/dl/lib/dl/value.rb
+++ b/ext/dl/lib/dl/value.rb
@@ -36,19 +36,6 @@ module DL
end
end
- def ruby2ffi arg, type
- return arg unless type == TYPE_VOIDP
- case arg
- when nil
- 0
- when CPtr
- arg.to_i
- else
- CPtr[arg].to_i
- end
- end
- private :ruby2ffi
-
def wrap_arg(arg, ty, funcs = [], &block)
funcs ||= []
case arg