Author: jamessan
Date: 2009-06-25 20:40:39 +0000 (Thu, 25 Jun 2009)
New Revision: 1918
Modified:
trunk/scripts/bts.pl
Log:
Remove dead code now that we don't Cc bugs when the user supplies a comment.
Modified: trunk/scripts/bts.pl
===================================================================
--- trunk/scripts/bts.pl 2009-06-17 18:39:51 UTC (rev 1917)
+++ trunk/scripts/bts.pl 2009-06-25 20:40:39 UTC (rev 1918)
@@ -131,9 +131,6 @@
my @valid_severities=qw(wishlist minor normal important
serious grave critical);
-my @no_cc_commands=qw(subscribe unsubscribe reportspam
- spamreport usertags);
-
my $browser; # Will set if necessary
my $cachedir=$ENV{'HOME'}."/.devscripts_cache/bts/";
@@ -147,7 +144,6 @@
}
my %clonedbugs = ();
-my %ccbugs = ();
my %ccpackages = ();
=head1 SYNOPSIS
@@ -2138,21 +2134,18 @@
if (not defined $it) {
die "bts: You specified 'it', but no previous bug number
referenced!\n";
}
- } else {
+ } else {
$bug=~s/^(?:(?:bug)?\#)?(-?\d+):?$/$1/i;
if (! exists $clonedbugs{$bug} &&
(! length $bug || $bug !~ /^[0-9]+$/)) {
warn "\"$_[0]\" does not look like a bug number\n" unless $quiet;
return "";
- }
+ }
# Valid, now set $it to this so that we can refer to it by 'it' later
- $it = $bug;
+ $it = $bug;
}
- $ccbugs{$it} = 1 if ! exists $clonedbugs{$it} &&
- ! (grep /^\Q$command[$index]\E/, @no_cc_commands);
-
return $it;
}
--
To unsubscribe, send mail to [email protected].