summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-09 17:34:41 +0200
committerlpsolit%gmail.com <>2007-10-09 17:34:41 +0200
commit1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3 (patch)
treefa2b295246b059f0a3524c74972566c14b59ce1f /Bugzilla/Bug.pm
parent73553366455cb23a6df1847d67bde74386c87742 (diff)
downloadbugzilla-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.gz
bugzilla-1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3.tar.xz
Bug 387672: Move BUG_STATE_OPEN and is_open_state() into Status.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index e1b4a6e55..c394ea8a8 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -53,7 +53,6 @@ use base qw(Bugzilla::Object Exporter);
bug_alias_to_id ValidateBugID
RemoveVotes CheckIfVotedConfirmed
LogActivityEntry
- BUG_STATE_OPEN is_open_state
editable_bug_fields
SPECIAL_STATUS_WORKFLOW_ACTIONS
);
@@ -223,12 +222,6 @@ use constant SPECIAL_STATUS_WORKFLOW_ACTIONS => qw(
clearresolution
);
-sub BUG_STATE_OPEN {
- # XXX - We should cache this list.
- my $dbh = Bugzilla->dbh;
- return @{$dbh->selectcol_arrayref('SELECT value FROM bug_status WHERE is_open = 1')};
-}
-
#####################################################################
sub new {
@@ -2428,12 +2421,6 @@ sub EmitDependList {
return $list_ref;
}
-# Tells you whether or not the argument is a valid "open" state.
-sub is_open_state {
- my ($state) = @_;
- return (grep($_ eq $state, BUG_STATE_OPEN) ? 1 : 0);
-}
-
sub ValidateTime {
my ($time, $field) = @_;