From 9a4a8673c08b1980d8bf4f9a1154bc1175c77b2b Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 24 Jan 2011 22:50:21 +0000 Subject: * test/ruby/test_thread.rb: remove unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_thread.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 0df25263bb..4e53b7fa86 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -149,7 +149,6 @@ class TestThread < Test::Unit::TestCase threads = Array.new mutex = Mutex.new condvar = ConditionVariable.new - result = [] nr_threads.times do |i| if (i != 0) @@ -202,7 +201,7 @@ class TestThread < Test::Unit::TestCase mutex = Mutex.new condvar = ConditionVariable.new - thr = Thread.new do + Thread.new do assert_raise(ThreadError) {condvar.wait(mutex)} end.join end @@ -211,7 +210,7 @@ class TestThread < Test::Unit::TestCase mutex = Mutex.new condvar = ConditionVariable.new - thr = Thread.new do + Thread.new do assert_raise(ThreadError) {condvar.wait(mutex, 0.1)} end.join end -- cgit v1.2.1