Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit d9a820f

Browse files
committed
Removes support to MRI 1.8.
1 parent 3a5012e commit d9a820f

File tree

2 files changed

+0
-106
lines changed

2 files changed

+0
-106
lines changed

lib/ref.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ module Ref
1919
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
2020
# If using Rubinius set the implementation to use WeakRef since it is very efficient and using finalizers is not.
2121
require 'ref/weak_reference/weak_ref'
22-
elsif defined?(::ObjectSpace::WeakMap)
23-
# Ruby 2.0 has a working implementation of weakref.rb backed by the new ObjectSpace::WeakMap
24-
require 'ref/weak_reference/weak_ref'
25-
elsif defined?(::ObjectSpace._id2ref)
26-
# If ObjectSpace can lookup objects from their object_id, then use the pure ruby implementation.
27-
require 'ref/weak_reference/pure_ruby'
2822
else
2923
# Otherwise, wrap the standard library WeakRef class
3024
require 'ref/weak_reference/weak_ref'

lib/ref/weak_reference/pure_ruby.rb

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)