Skip to content

Commit e2f5683

Browse files
committed
Remove "require 'thread'" statements
These are no longer required in the supported Ruby versions.
1 parent fe7ccac commit e2f5683

File tree

7 files changed

+0
-9
lines changed

7 files changed

+0
-9
lines changed

core/conditionvariable/broadcast_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require_relative '../../spec_helper'
2-
require 'thread'
32

43
describe "ConditionVariable#broadcast" do
54
it "releases all threads waiting in line for this resource" do

core/conditionvariable/marshal_dump_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require_relative '../../spec_helper'
2-
require 'thread'
32

43
describe "ConditionVariable#marshal_dump" do
54
it "raises a TypeError" do

core/conditionvariable/signal_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require_relative '../../spec_helper'
2-
require 'thread'
32

43
describe "ConditionVariable#signal" do
54
it "releases the first thread waiting in line for this resource" do

core/conditionvariable/wait_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require_relative '../../spec_helper'
2-
require 'thread'
32

43
describe "ConditionVariable#wait" do
54
it "calls #sleep on the given object" do

core/module/autoload_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require_relative '../../spec_helper'
22
require_relative '../../fixtures/code_loading'
33
require_relative 'fixtures/classes'
4-
require 'thread'
54

65
describe "Module#autoload?" do
76
it "returns the name of the file that will be autoloaded" do

core/process/fixtures/kill.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'thread'
2-
31
pid_file = ARGV.shift
42
scenario = ARGV.shift
53

library/objectspace/reachable_objects_from_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
end
3939

4040
it "finds an object stored in a Queue" do
41-
require 'thread'
4241
o = Object.new
4342
q = Queue.new
4443
q << o
@@ -49,7 +48,6 @@
4948
end
5049

5150
it "finds an object stored in a SizedQueue" do
52-
require 'thread'
5351
o = Object.new
5452
q = SizedQueue.new(3)
5553
q << o

0 commit comments

Comments
 (0)