mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove seemingly unused context stubs code
This commit is contained in:
parent
3b5086c74b
commit
b07dca697e
1 changed files with 0 additions and 17 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue