From 29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 22 May 2006 05:15:04 +0000 Subject: Bug 332522: Remove $::prodmaxvotes - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- globals.pl | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index 4798c2b49..bde05517b 100644 --- a/globals.pl +++ b/globals.pl @@ -49,7 +49,6 @@ sub globals_pl_sillyness { $zz = @main::legal_platform; $zz = @main::legal_priority; $zz = @main::legal_severity; - $zz = @main::prodmaxvotes; } # @@ -99,16 +98,8 @@ $::SIG{PIPE} = 'IGNORE'; sub GenerateVersionTable { my $dbh = Bugzilla->dbh; - my @line; - SendSQL("SELECT name, votesperuser " . - "FROM products ORDER BY name"); - while (@line = FetchSQLData()) { - my ($p, $votesperuser) = (@line); - $::prodmaxvotes{$p} = $votesperuser; - } - @::log_columns = $dbh->bz_table_columns('bugs'); - + foreach my $i ("bug_id", "creation_ts", "delta_ts", "lastdiffed") { my $w = lsearch(\@::log_columns, $i); if ($w >= 0) { @@ -161,8 +152,8 @@ sub GenerateVersionTable { '*::legal_platform', '*::legal_opsys', '*::legal_bug_status', '*::legal_resolution'])); - print $fh (Data::Dumper->Dump([\@::settable_resolution, \%::prodmaxvotes], - ['*::settable_resolution', '*::prodmaxvotes'])); + print $fh (Data::Dumper->Dump([\@::settable_resolution], + ['*::settable_resolution'])); print $fh "1;\n"; close $fh; -- cgit v1.2.3-24-g4f1b