From 382ba590ad74b6cb1e7dc9c6e8146e7934a8db90 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 1 Jun 2021 11:47:05 -0400 Subject: [PATCH] Drop unused query from GET Build. --- src/lib/Hydra/Controller/Build.pm | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 80ca15d2..c769edef 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -81,25 +81,6 @@ sub build_GET { } } - if ($build->finished) { - $c->stash->{prevBuilds} = [$c->model('DB::Builds')->search( - { jobset_id => $c->stash->{jobset}->id - , job => $c->stash->{job} - , 'me.system' => $build->system - , finished => 1 - , buildstatus => 0 - , 'me.id' => { '<=' => $build->id } - } - , { join => "actualBuildStep" - , "+select" => ["actualBuildStep.stoptime - actualBuildStep.starttime"] - , "+as" => ["actualBuildTime"] - , order_by => "me.id DESC" - , rows => 50 - } - ) - ]; - } - # Get the first eval of which this build was a part. ($c->stash->{nrEvals}) = $build->jobsetevals->search({ hasnewbuilds => 1 })->count; $c->stash->{eval} = getFirstEval($build);