Skip to content

Commit

Permalink
absorb unnecessary private method
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed Feb 9, 2018
1 parent ad5f897 commit 012ed25
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/jekyll/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -477,17 +477,12 @@ def render_regenerated(document, payload)
document.trigger_hooks(:post_render)
end

private
def process_methods
%w(reset read generate render cleanup write)
end

private
def profile_process
profile_data = {}
total_time = 0

process_methods.each do |method|
%w(reset read generate render cleanup write).each do |method|
start_time = Time.now
public_send(method)
end_time = (Time.now - start_time).round(4)
Expand Down

0 comments on commit 012ed25

Please sign in to comment.