From 1b8e4cadbdab2e8a335c9f1186a301e493a9a8b3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 9 Oct 2007 15:34:41 +0000 Subject: Bug 387672: Move BUG_STATE_OPEN and is_open_state() into Status.pm - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'Bugzilla/Bug.pm') 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) = @_; -- cgit v1.2.3-24-g4f1b