mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Remove 'use diagnostics' calls to speed up scripts.
Bug #204463 r=justdave
This commit is contained in:
parent
035652083f
commit
f0886ed803
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
# Contains some global routines used throughout the CGI scripts of Bugzilla.
|
# Contains some global routines used throughout the CGI scripts of Bugzilla.
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
use CGI::Carp qw(fatalsToBrowser);
|
use CGI::Carp qw(fatalsToBrowser);
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
# ...
|
# ...
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
use CGI;
|
use CGI;
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
sub StupidFuncToShutUpWarningsByUsingVarsAgain {
|
sub StupidFuncToShutUpWarningsByUsingVarsAgain {
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use diagnostics;
|
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
# doesn't work for me.
|
# doesn't work for me.
|
||||||
|
@ -24,7 +24,6 @@ require 'globals.pl';
|
|||||||
require 'adminfuncs.pl';
|
require 'adminfuncs.pl';
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use diagnostics;
|
|
||||||
|
|
||||||
|
|
||||||
sub GetDate {
|
sub GetDate {
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -39,7 +39,6 @@
|
|||||||
# mark - highlight a line
|
# mark - highlight a line
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s): Jacob Steenhagen <jake@acutex.net>
|
# Contributor(s): Jacob Steenhagen <jake@acutex.net>
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
use vars qw{ $revision_ctime $revision_author };
|
use vars qw{ $revision_ctime $revision_author };
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
# author - filter based on author
|
# author - filter based on author
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
require 'globals.pl';
|
require 'globals.pl';
|
||||||
require 'get_line.pl';
|
require 'get_line.pl';
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
# Query the CVS database.
|
# Query the CVS database.
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -39,7 +39,6 @@
|
|||||||
# SRCROOTS is an array of repository roots under which to look for CVS files.
|
# SRCROOTS is an array of repository roots under which to look for CVS files.
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
use CGI;
|
use CGI;
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
# This file defines all the parameters that we have a GUI to edit within
|
# This file defines all the parameters that we have a GUI to edit within
|
||||||
# Bonsai.
|
# Bonsai.
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use diagnostics;
|
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
require 'adminfuncs.pl';
|
require 'adminfuncs.pl';
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require "CGI.pl";
|
require "CGI.pl";
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
||||||
|
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require "CGI.pl";
|
require "CGI.pl";
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
$::TreeID = "default";
|
$::TreeID = "default";
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
use DBI;
|
use DBI;
|
||||||
use File::Path;
|
use File::Path;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
if( $ARGV[0] eq '' ){
|
if( $ARGV[0] eq '' ){
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
# Unroll a module
|
# Unroll a module
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'get_line.pl';
|
require 'get_line.pl';
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
# Multi file diff cgi
|
# Multi file diff cgi
|
||||||
#
|
#
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
print "Content-type: text/html
|
print "Content-type: text/html
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
if( $ARGV[0] eq '' ){
|
if( $ARGV[0] eq '' ){
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#
|
#
|
||||||
# Contributor(s):
|
# Contributor(s):
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Shut up misguided -w warnings about "used only once". "use vars" just
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
sub StupidFuncToShutUpWarningsByUsingVarsAgain {
|
sub StupidFuncToShutUpWarningsByUsingVarsAgain {
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
require 'CGI.pl';
|
require 'CGI.pl';
|
||||||
|
|
||||||
use diagnostics;
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
LoadCheckins();
|
LoadCheckins();
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
require 'lloydcgi.pl';
|
require 'lloydcgi.pl';
|
||||||
require 'utils.pl';
|
require 'utils.pl';
|
||||||
|
|
||||||
# use diagnostics;
|
|
||||||
# use strict;
|
# use strict;
|
||||||
|
|
||||||
my $db = ConnectToDatabase();
|
my $db = ConnectToDatabase();
|
||||||
|
Loading…
Reference in New Issue
Block a user