diff options
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/globals.pl b/globals.pl index be3df7d75..556ea3f3e 100644 --- a/globals.pl +++ b/globals.pl @@ -45,10 +45,8 @@ use Bugzilla::Error; sub globals_pl_sillyness { my $zz; $zz = @main::enterable_products; - $zz = %main::keywordsbyname; $zz = @main::legal_bug_status; $zz = @main::legal_components; - $zz = @main::legal_keywords; $zz = @main::legal_opsys; $zz = @main::legal_platform; $zz = @main::legal_priority; @@ -258,17 +256,6 @@ sub GenerateVersionTable { '*::milestoneurl'])); } - SendSQL("SELECT id, name FROM keyworddefs ORDER BY name"); - while (MoreSQLData()) { - my ($id, $name) = FetchSQLData(); - push(@::legal_keywords, $name); - $name = lc($name); - $::keywordsbyname{$name} = $id; - } - - print $fh (Data::Dumper->Dump([\@::legal_keywords, \%::keywordsbyname], - ['*::legal_keywords', '*::keywordsbyname'])); - print $fh "1;\n"; close $fh; @@ -278,13 +265,6 @@ sub GenerateVersionTable { } -sub GetKeywordIdFromName { - my ($name) = (@_); - $name = lc($name); - return $::keywordsbyname{$name}; -} - - $::VersionTableLoaded = 0; sub GetVersionTable { return if $::VersionTableLoaded; |