From c1d2493bc8c17ce1f9d411922be7cecf93924975 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Thu, 4 Feb 2021 14:30:52 +0100 Subject: [PATCH] Remove dead code for MRI 2.2 support --- lib/bootsnap/load_path_cache/store.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bootsnap/load_path_cache/store.rb b/lib/bootsnap/load_path_cache/store.rb index e820c891..75fe4eba 100644 --- a/lib/bootsnap/load_path_cache/store.rb +++ b/lib/bootsnap/load_path_cache/store.rb @@ -12,8 +12,7 @@ class Store def initialize(store_path) @store_path = store_path - # TODO: Remove conditional once Ruby 2.2 support is dropped. - @txn_mutex = defined?(::Mutex) ? ::Mutex.new : ::Thread::Mutex.new + @txn_mutex = Mutex.new @dirty = false load_data end