summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-12-14 12:41:08 -0800
committergit <svn-admin@ruby-lang.org>2023-12-15 19:36:24 +0000
commit1cfe874ef83cdb7776ecf892c470af634532501c (patch)
tree9c89cd8fe82def82ce011d8e11e9d19a2c36e968 /lib
parent0a31cb1a37f184daa7c2839abd6a827793fdd2f3 (diff)
[rubygems/rubygems] Remove test-only & unused methods from Checksum::Store
https://github.com/rubygems/rubygems/commit/79636dec12
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/checksum.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/bundler/checksum.rb b/lib/bundler/checksum.rb
index 633aab5f10..742df42a74 100644
--- a/lib/bundler/checksum.rb
+++ b/lib/bundler/checksum.rb
@@ -163,21 +163,10 @@ module Bundler
@store = {}
end
- def initialize_copy(other)
- @store = {}
- other.store.each do |lock_name, checksums|
- store[lock_name] = checksums.dup
- end
- end
-
def inspect
"#<#{self.class}:#{object_id} size=#{store.size}>"
end
- def fetch(spec, algo = DEFAULT_ALGORITHM)
- store[spec.name_tuple.lock_name]&.fetch(algo, nil)
- end
-
# Replace when the new checksum is from the same source.
# The primary purpose of this registering checksums from gems where there are
# duplicates of the same gem (according to full_name) in the index.