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