Remove seemingly unused context stubs code

This commit is contained in:
Michael Miller 2021-01-30 17:27:17 -07:00
parent 3b5086c74b
commit b07dca697e
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -11,23 +11,6 @@ module Spectator::Mocks
@all_instances = {} of String => Entry @all_instances = {} of String => Entry
@entries = {} of Key => Entry @entries = {} of Key => Entry
def initialize(context : TestContext)
current_context = context
while current_context
current_context.stubs.each do |k, v|
stubs = if @all_instances.has_key?(k)
@all_instances[k].stubs
else
entry = Entry.new
@all_instances[k] = entry
entry.stubs
end
stubs.concat(v)
end
current_context = current_context.parent?
end
end
def reset : Nil def reset : Nil
@entries.clear @entries.clear
end end