Bug 76923 - Don't |use diagnostics| (its really expensive at startup time)

r=joel x2
parent 2154f730
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
# Module Initialization # Module Initialization
############################################################################ ############################################################################
use diagnostics;
use strict; use strict;
package Attachment; package Attachment;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Terry Weissman <terry@mozilla.org> # Terry Weissman <terry@mozilla.org>
# Chris Yeh <cyeh@bluemartini.com> # Chris Yeh <cyeh@bluemartini.com>
use diagnostics;
use strict; use strict;
use DBI; use DBI;
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
# Module Initialization # Module Initialization
############################################################################ ############################################################################
use diagnostics;
use strict; use strict;
package Attachment; package Attachment;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Terry Weissman <terry@mozilla.org> # Terry Weissman <terry@mozilla.org>
# Chris Yeh <cyeh@bluemartini.com> # Chris Yeh <cyeh@bluemartini.com>
use diagnostics;
use strict; use strict;
use DBI; use DBI;
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
# might involve turning this into a virtual base class, and having # might involve turning this into a virtual base class, and having
# UserSet and KeywordSet types that inherit from it. # UserSet and KeywordSet types that inherit from it.
use diagnostics;
use strict; use strict;
# Everything that uses RelationSet should already have globals.pl loaded # Everything that uses RelationSet should already have globals.pl loaded
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
# Myk Melez <myk@mozilla.org> # Myk Melez <myk@mozilla.org>
# Michael Schindler <michael@compressconsult.com> # Michael Schindler <michael@compressconsult.com>
use diagnostics;
use strict; use strict;
require "globals.pl"; require "globals.pl";
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
################################################################################ ################################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
# Bundle the functions in this file together into the "Token" package. # Bundle the functions in this file together into the "Token" package.
......
...@@ -69,7 +69,6 @@ use base qw(Exporter); ...@@ -69,7 +69,6 @@ use base qw(Exporter);
trim); trim);
use strict; use strict;
use diagnostics;
=head1 FUNCTIONS =head1 FUNCTIONS
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,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 lib "."; use lib ".";
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
# might involve turning this into a virtual base class, and having # might involve turning this into a virtual base class, and having
# UserSet and KeywordSet types that inherit from it. # UserSet and KeywordSet types that inherit from it.
use diagnostics;
use strict; use strict;
# Everything that uses RelationSet should already have globals.pl loaded # Everything that uses RelationSet should already have globals.pl loaded
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
################################################################################ ################################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
# Bundle the functions in this file together into the "Token" package. # Bundle the functions in this file together into the "Token" package.
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
################################################################################ ################################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Dave Miller <justdave@syndicomm.com> # Dave Miller <justdave@syndicomm.com>
# Vaskin Kissoyan <vkissoyan@yahoo.com> # Vaskin Kissoyan <vkissoyan@yahoo.com>
use diagnostics;
use strict; use strict;
use RelationSet; use RelationSet;
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
################################################################################ ################################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -94,7 +94,6 @@ ...@@ -94,7 +94,6 @@
# Global definitions # Global definitions
########################################################################### ###########################################################################
use diagnostics;
use strict; use strict;
# 12/17/00 justdave@syndicomm.com - removed declarations of the localconfig # 12/17/00 justdave@syndicomm.com - removed declarations of the localconfig
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
use AnyDBM_File; use AnyDBM_File;
use diagnostics;
use strict; use strict;
use vars @::legal_product; use vars @::legal_product;
......
...@@ -29,7 +29,6 @@ push @INC, "../."; # this script now lives in contrib ...@@ -29,7 +29,6 @@ push @INC, "../."; # this script now lives in contrib
require "globals.pl"; require "globals.pl";
use diagnostics;
use strict; use strict;
my $EMAIL_TRANSFORM_NONE = "email_transform_none"; my $EMAIL_TRANSFORM_NONE = "email_transform_none";
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
# #
# You need to work with bug_email.pl the MIME::Parser installed. # You need to work with bug_email.pl the MIME::Parser installed.
# #
# $Id: bug_email.pl,v 1.12 2002/08/17 14:19:57 bbaetz%student.usyd.edu.au Exp $ # $Id: bug_email.pl,v 1.13 2002/08/26 06:17:21 bbaetz%student.usyd.edu.au Exp $
############################################################### ###############################################################
# 02/12/2000 (SML) # 02/12/2000 (SML)
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
# - integrate some setup in the checksetup.pl script # - integrate some setup in the checksetup.pl script
# - gpg signatures for security # - gpg signatures for security
use diagnostics;
use strict; use strict;
use MIME::Parser; use MIME::Parser;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
# 1. better way to get the body text (I don't know what dump_entity() is # 1. better way to get the body text (I don't know what dump_entity() is
# actually doing # actually doing
use diagnostics;
use strict; use strict;
use MIME::Parser; use MIME::Parser;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# mysqld-watcher.pl - a script that watches the running instance of # mysqld-watcher.pl - a script that watches the running instance of
# mysqld and kills off any long-running SELECTs against the shadow_db # mysqld and kills off any long-running SELECTs against the shadow_db
# #
use diagnostics;
use strict; use strict;
# some configurables: # some configurables:
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
# Christopher Aillon <christopher@aillon.com> # Christopher Aillon <christopher@aillon.com>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
# Only adding new parameters is done here. Once the parameter exists, you # Only adding new parameters is done here. Once the parameter exists, you
# must use %baseurl%/editparams.cgi from the web to edit the settings. # must use %baseurl%/editparams.cgi from the web to edit the settings.
use diagnostics;
use strict; use strict;
# Shut up misguided -w warnings about "used only once". For some reason, # Shut up misguided -w warnings about "used only once". For some reason,
......
...@@ -27,7 +27,6 @@ use vars qw( ...@@ -27,7 +27,6 @@ use vars qw(
$userid $userid
); );
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# J. Paul Reed <preed@sigkill.com> # J. Paul Reed <preed@sigkill.com>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Generates mostfreq list from data collected by collectstats.pl. # Generates mostfreq list from data collected by collectstats.pl.
use diagnostics;
use strict; use strict;
use AnyDBM_File; use AnyDBM_File;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
################################################################################ ################################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
# #
# Holger Schurig <holgerschurig@nikocity.de> # Holger Schurig <holgerschurig@nikocity.de>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Code derived from editowners.cgi and editusers.cgi # Code derived from editowners.cgi and editusers.cgi
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
# #
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
# #
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# J. Paul Reed <preed@sigkill.com> # J. Paul Reed <preed@sigkill.com>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
# #
# Holger Schurig <holgerschurig@nikocity.de> # Holger Schurig <holgerschurig@nikocity.de>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
# #
# Holger Schurig <holgerschurig@nikocity.de> # Holger Schurig <holgerschurig@nikocity.de>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
# #
# Holger Schurig <holgerschurig@nikocity.de> # Holger Schurig <holgerschurig@nikocity.de>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
# #
############################################################################## ##############################################################################
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
# Contains some global variables and routines used throughout bugzilla. # Contains some global variables and routines used throughout bugzilla.
use diagnostics;
use strict; use strict;
use Bugzilla::Util; use Bugzilla::Util;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
# a new bug into bugzilla. Everything before the beginning <?xml line # a new bug into bugzilla. Everything before the beginning <?xml line
# is removed so you can pipe in email messages. # is removed so you can pipe in email messages.
use diagnostics;
use strict; use strict;
##################################################################### #####################################################################
......
...@@ -30,7 +30,6 @@ use vars qw{ %COOKIE }; ...@@ -30,7 +30,6 @@ use vars qw{ %COOKIE };
############################################################################### ###############################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
# Include the Bugzilla CGI and general utility library. # Include the Bugzilla CGI and general utility library.
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Dawn Endico <endico@mozilla.org> # Contributor(s): Dawn Endico <endico@mozilla.org>
# Terry Weissman <terry@mozilla.org> # Terry Weissman <terry@mozilla.org>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
# either case), numbers 0-9, the underscore "_" and the hyphen "-". # either case), numbers 0-9, the underscore "_" and the hyphen "-".
############################################################################### ###############################################################################
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Joe Robins <jmrobins@tgix.com> # Joe Robins <jmrobins@tgix.com>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
# Christopher Aillon <christopher@aillon.com> # Christopher Aillon <christopher@aillon.com>
# Myk Melez <myk@mozilla.org> # Myk Melez <myk@mozilla.org>
use diagnostics;
use strict; use strict;
my $UserInEditGroupSet = -1; my $UserInEditGroupSet = -1;
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
# Jacob Steenhagen <jake@actex.net> # Jacob Steenhagen <jake@actex.net>
# Matthew Tuck <matty@chariot.net.au> # Matthew Tuck <matty@chariot.net.au>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Matthias Radestock <matthias@sorted.org> # Matthias Radestock <matthias@sorted.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
use vars %::FORM; use vars %::FORM;
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
# David Fallon <davef@tetsubo.com> # David Fallon <davef@tetsubo.com>
use diagnostics;
use strict; use strict;
use vars qw( use vars qw(
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use vars %::COOKIE; use vars %::COOKIE;
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
# Myk Melez <myk@mozilla.org): # Myk Melez <myk@mozilla.org):
# Implemented form field validation and reorganized code. # Implemented form field validation and reorganized code.
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Matthew Tuck <matty@chariot.net.au> # Matthew Tuck <matty@chariot.net.au>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# Myk Melez <myk@mozilla.org> # Myk Melez <myk@mozilla.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
# #
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Jacob Steenhagen <jake@acutex.net> # Jacob Steenhagen <jake@acutex.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Christian Reis <kiko@async.com.br> # Christian Reis <kiko@async.com.br>
# Myk Melez <myk@mozilla.org> # Myk Melez <myk@mozilla.org>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
# Contributor(s): Jacob Steenhagen <jake@acutex.net> # Contributor(s): Jacob Steenhagen <jake@acutex.net>
use strict; use strict;
use diagnostics;
use lib "."; use lib ".";
require "CGI.pl"; require "CGI.pl";
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# David Gardiner <david.gardiner@unisa.edu.au> # David Gardiner <david.gardiner@unisa.edu.au>
use diagnostics;
use strict; use strict;
require "globals.pl"; require "globals.pl";
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
package Support::Templates; package Support::Templates;
use diagnostics;
use strict; use strict;
use lib 't'; use lib 't';
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
############################################################################ ############################################################################
# Make it harder for us to do dangerous things in Perl. # Make it harder for us to do dangerous things in Perl.
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
# Christopher Aillon <christopher@aillon.com> # Christopher Aillon <christopher@aillon.com>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Christopher Aillon <christopher@aillon.com> # Christopher Aillon <christopher@aillon.com>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib "."; use lib ".";
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
# assigned to them that has status NEW that has not been touched for # assigned to them that has status NEW that has not been touched for
# more than 7 days. # more than 7 days.
use diagnostics;
use strict; use strict;
require "globals.pl"; require "globals.pl";
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# Terry Weissman <terry@mozilla.org> # Terry Weissman <terry@mozilla.org>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
use diagnostics;
use strict; use strict;
use lib qw(.); use lib qw(.);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment