diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-12 02:29:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-12 02:29:57 +0000 |
commit | 1c904182d2d23565da251bbbb64e4e4c9a592ef8 (patch) | |
tree | cb64ab31c1f994110f90cc8075a67ad471a4e607 /test/fiddle/test_pointer.rb | |
parent | 7c5a79efba23cb861dcdb98ffef2227ae9a49bd4 (diff) | |
download | ruby-1c904182d2d23565da251bbbb64e4e4c9a592ef8.tar.gz |
removed unusecd constants
* ruby-runner.c (ruby_libm_func): removed as the following test
actually doesn't need the path of libm.
* test/fiddle/test_pointer.rb (Fiddle::TestPointer#test_free=):
removed never used constants and instance variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle/test_pointer.rb')
-rw-r--r-- | test/fiddle/test_pointer.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/fiddle/test_pointer.rb b/test/fiddle/test_pointer.rb index 27a8a6cb06..b1122aa9c5 100644 --- a/test/fiddle/test_pointer.rb +++ b/test/fiddle/test_pointer.rb @@ -152,11 +152,7 @@ module Fiddle def test_free= assert_normal_exit(<<-"End", '[ruby-dev:39269]') require 'fiddle' - Fiddle::LIBC_SO = #{Fiddle::LIBC_SO.dump} - Fiddle::LIBM_SO = #{Fiddle::LIBM_SO.dump} include Fiddle - @libc = dlopen(LIBC_SO) - @libm = dlopen(LIBM_SO) free = Fiddle::Function.new(Fiddle::RUBY_FREE, [TYPE_VOIDP], TYPE_VOID) ptr = Fiddle::Pointer.malloc(4) ptr.free = free |