From 6cafbd35d970f898eebc8c2d7b6f79fb4f79308c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 10 Feb 2024 14:24:28 +0900 Subject: [PATCH] YJIT: Remove unused variables --- yjit.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/yjit.rb b/yjit.rb index 0a649e0dc7..18b00c0765 100644 --- a/yjit.rb +++ b/yjit.rb @@ -401,7 +401,6 @@ module RubyVM::YJIT top_n_total = pairs.sum { |name, count| count } top_n_pct = 100.0 * top_n_total / num_calls - longest_name_len = pairs.max_by { |name, count| name.length }.first.length out.puts "Top-#{pairs.size} most frequent #{type} calls (#{"%.1f" % top_n_pct}% of #{type} calls):" @@ -429,7 +428,6 @@ module RubyVM::YJIT out.puts "Top-#{exits.size} most frequent exit ops (#{"%.1f" % top_n_exit_pct}% of exits):" - longest_insn_name_len = exits.max_by { |name, count| name.length }.first.length exits.each do |name, count| padded_count = format_number_pct(10, count, total_exits) out.puts("#{padded_count}: #{name}")