Skip to content

Commit

Permalink
🔥 — Remove useless / bad practice code
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
ldidry committed Jul 27, 2020
1 parent 149a7fa commit a80a1cc
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions examples/mha-preview
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ my $PreviewLen = 256;
##-----------------------------------------------------------------------##

MAIN: {
unshift(@INC, 'lib'); # Should I leave this line in?

## Grab options from @ARGV unique to this program
my %opts = ( );
Getopt::Long::Configure('pass_through');
Expand Down
1 change: 0 additions & 1 deletion lib/mhamain.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,6 @@ sub signal_catch {
## Create Index2MsgId if not defined
##
sub defineIndex2MsgId {
no warnings qw(deprecated);
unless (%Index2MsgId) {
foreach (keys %MsgId) {
$Index2MsgId{$MsgId{$_}} = $_;
Expand Down
1 change: 0 additions & 1 deletion lib/mhopt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ sub update_data_1_to_2 {
## Update 2.1, or earlier, data.
##
sub update_data_2_1_to_later {
no warnings qw(deprecated);
# we can preserve filter arguments
if (%main::MIMEFiltersArgs) {
warn qq/ preserving MIMEARGS...\n/;
Expand Down
2 changes: 0 additions & 2 deletions lib/readmail.pl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@

package readmail;

no warnings qw(deprecated);

$DEBUG = 0;

###############################################################################
Expand Down
2 changes: 0 additions & 2 deletions mha-dbedit
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ package mha_dbedit;
##---------------------------------------------------------------------------##

MAIN: {
unshift(@INC, 'lib'); # Should I leave this line in?

## Initialize MHonArc
require 'mhamain.pl' || die qq/ERROR: Unable to require "mhamain.pl"\n/;
mhonarc::initialize();
Expand Down
2 changes: 0 additions & 2 deletions mha-dbrecover
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ use Getopt::Long;
##---------------------------------------------------------------------------##

MAIN: {
unshift(@INC, 'lib'); # Should I leave this line in?

## Grab options from @ARGV unique to this program
my %opts = ( );
Getopt::Long::Configure('pass_through');
Expand Down
2 changes: 0 additions & 2 deletions mha-decode
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ use Getopt::Long;
##---------------------------------------------------------------------------##

MAIN: {
unshift(@INC, 'lib'); # Should I leave this line in?

## Grab options from @ARGV unique to this program
my %opts = ( );
Getopt::Long::Configure('pass_through');
Expand Down
2 changes: 0 additions & 2 deletions mhonarc
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
##---------------------------------------------------------------------------##

MAIN: {
unshift(@INC, 'lib'); # Should I leave this line in?

require 'mhamain.pl' || die qq/ERROR: Unable to require "mhamain.pl"\n/;
mhonarc::initialize();
mhonarc::process_input() ? exit(0) : exit($mhonarc::CODE);
Expand Down

0 comments on commit a80a1cc

Please sign in to comment.