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 | |
parent | 7c5a79efba23cb861dcdb98ffef2227ae9a49bd4 (diff) |
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
-rw-r--r-- | ruby-runner.c | 4 | ||||
-rw-r--r-- | test/fiddle/test_pointer.rb | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/ruby-runner.c b/ruby-runner.c index b5a2e50659..99be4a0013 100644 --- a/ruby-runner.c +++ b/ruby-runner.c @@ -43,10 +43,6 @@ insert_env_path(const char *envname, const char *paths, size_t size, int prepend setenv(envname, env, 1); } -/* force to link libm for fiddle test */ -#include <math.h> -double (*const ruby_libm_func)(double) = log; - #define EXTOUT_DIR BUILDDIR"/"EXTOUT int main(int argc, char **argv) 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 |