From c909eb46740a1daeaf8fac1d60d0e4539f01e342 Mon Sep 17 00:00:00 2001 From: tkimia Date: Thu, 24 Apr 2014 19:06:34 -0400 Subject: more fixes to the SVG --- lib/scheduling/elimination.rb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'lib/scheduling/elimination.rb') diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb index cf0d625..0e93f7a 100644 --- a/lib/scheduling/elimination.rb +++ b/lib/scheduling/elimination.rb @@ -61,11 +61,6 @@ module Scheduling matchHeight = 50*logBase; height = [(matchHeight+50) * logBase**(depth-1) + 100, 500].max; - lastrx = 0 - lastry = 0 - lastrh = 0 - lastrw = 0 - str = <<-STRING \n" str += "\t\t\n" if matches[i].teams[t-1] - str += "\t\tTeam #{matches[i].teams[t-1].id}\n" + str += "\t\tTeam #{matches[i].teams[t-1].id}\n" end if (t < numTeams) - str += "\t\t VS \n" + str += "\t\t VS \n" end t = t + 1 end -- cgit v1.2.3-54-g00ecf