Skip to content

Commit

Permalink
Remove "require 'thread'" statements
Browse files Browse the repository at this point in the history
These are no longer required in the supported Ruby versions.
  • Loading branch information
herwinw committed Dec 30, 2023
1 parent fe7ccac commit e2f5683
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion core/conditionvariable/broadcast_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require_relative '../../spec_helper'
require 'thread'

describe "ConditionVariable#broadcast" do
it "releases all threads waiting in line for this resource" do
Expand Down
1 change: 0 additions & 1 deletion core/conditionvariable/marshal_dump_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require_relative '../../spec_helper'
require 'thread'

describe "ConditionVariable#marshal_dump" do
it "raises a TypeError" do
Expand Down
1 change: 0 additions & 1 deletion core/conditionvariable/signal_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require_relative '../../spec_helper'
require 'thread'

describe "ConditionVariable#signal" do
it "releases the first thread waiting in line for this resource" do
Expand Down
1 change: 0 additions & 1 deletion core/conditionvariable/wait_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require_relative '../../spec_helper'
require 'thread'

describe "ConditionVariable#wait" do
it "calls #sleep on the given object" do
Expand Down
1 change: 0 additions & 1 deletion core/module/autoload_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require_relative '../../spec_helper'
require_relative '../../fixtures/code_loading'
require_relative 'fixtures/classes'
require 'thread'

describe "Module#autoload?" do
it "returns the name of the file that will be autoloaded" do
Expand Down
2 changes: 0 additions & 2 deletions core/process/fixtures/kill.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'thread'

pid_file = ARGV.shift
scenario = ARGV.shift

Expand Down
2 changes: 0 additions & 2 deletions library/objectspace/reachable_objects_from_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
end

it "finds an object stored in a Queue" do
require 'thread'
o = Object.new
q = Queue.new
q << o
Expand All @@ -49,7 +48,6 @@
end

it "finds an object stored in a SizedQueue" do
require 'thread'
o = Object.new
q = SizedQueue.new(3)
q << o
Expand Down

0 comments on commit e2f5683

Please sign in to comment.