mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
Remove the Profiler#initialize argument which is effectively now unused
The @root_timing Timing object that it was used with never exposed that name.
This commit is contained in:
@@ -102,8 +102,8 @@ module Liquid
|
|||||||
|
|
||||||
attr_reader :total_render_time
|
attr_reader :total_render_time
|
||||||
|
|
||||||
def initialize(template_name)
|
def initialize
|
||||||
@root_timing = Timing.new("", template_name)
|
@root_timing = Timing.new("", nil)
|
||||||
@timing_stack = [@root_timing]
|
@timing_stack = [@root_timing]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ module Liquid
|
|||||||
if @profiling && !context.partial
|
if @profiling && !context.partial
|
||||||
raise "Profiler not loaded, require 'liquid/profiler' first" unless defined?(Liquid::Profiler)
|
raise "Profiler not loaded, require 'liquid/profiler' first" unless defined?(Liquid::Profiler)
|
||||||
|
|
||||||
@profiler = Profiler.new(context.template_name)
|
@profiler = Profiler.new
|
||||||
@profiler.start
|
@profiler.start
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|||||||
Reference in New Issue
Block a user