[前][次][番号順一覧][スレッド一覧]

ruby-changes:70068

From: Nobuyoshi <ko1@a...>
Date: Sun, 5 Dec 2021 23:18:18 +0900 (JST)
Subject: [ruby-changes:70068] bbfefd45c6 (master): [ruby/securerandom] Remove no longer used helper methods

https://git.ruby-lang.org/ruby.git/commit/?id=bbfefd45c6

From bbfefd45c6c99c4371cc0789bdd1da9ea3ade701 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 5 Dec 2021 22:50:55 +0900
Subject: [ruby/securerandom] Remove no longer used helper methods

Unused since r59801, 782b2050b837206d06767d42d0ea5117921247c8,
or https://github.com/ruby/securerandom/commit/52c8e7a85e017f.

https://github.com/ruby/securerandom/commit/38fc2c4427
---
 test/test_securerandom.rb | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb
index ab96952e370..f9130ab81e2 100644
--- a/test/test_securerandom.rb
+++ b/test/test_securerandom.rb
@@ -1,7 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/test/test_securerandom.rb#L1
 # frozen_string_literal: false
 require 'test/unit'
 require 'securerandom'
-require 'tempfile'
 
 # This testcase does NOT aim to test cryptographically strongness and randomness.
 class TestSecureRandom < Test::Unit::TestCase
@@ -156,24 +155,6 @@ end https://github.com/ruby/ruby/blob/trunk/test/test_securerandom.rb#L155
     end
   end
 
-  def protect
-    begin
-      yield
-    rescue NotImplementedError
-      # ignore
-    end
-  end
-
-  def remove_feature(basename)
-    $LOADED_FEATURES.delete_if { |path|
-      if File.basename(path) == basename
-        $LOAD_PATH.any? { |dir|
-          File.exist?(File.join(dir, basename))
-        }
-      end
-    }
-  end
-
   def assert_in_range(range, result, mesg = nil)
     assert(range.cover?(result), build_message(mesg, "Expected #{result} to be in #{range}"))
   end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]