From ad1d35c342a029ee65c6b7f456220c1157f27b2d Mon Sep 17 00:00:00 2001 From: aoki1980taichi Date: Sat, 25 Jun 2022 00:21:23 +0900 Subject: [PATCH] delete unused variable cnt is unused --- benchmark/bm_ao_render.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/benchmark/bm_ao_render.rb b/benchmark/bm_ao_render.rb index a67c44a79..91e2d3419 100644 --- a/benchmark/bm_ao_render.rb +++ b/benchmark/bm_ao_render.rb @@ -252,7 +252,6 @@ class Scene end def render(w, h, nsubsamples) - cnt = 0 nsf = nsubsamples.to_f h.times do |y| w.times do |x| @@ -261,7 +260,6 @@ class Scene # Subsampling nsubsamples.times do |v| nsubsamples.times do |u| - cnt = cnt + 1 wf = w.to_f hf = h.to_f xf = x.to_f