From 8bb23905c385fcf75594358c503b264620745c93 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 28 Oct 2020 13:29:31 +0100 Subject: [PATCH] Build: Remove unused prevBuild This speeds up loading the page a lot in the case where there is no previous evaluation (for some reason). --- src/lib/Hydra/Controller/Build.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 827b8ac6..79cc4c80 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -30,7 +30,6 @@ sub buildChain :Chained('/') :PathPart('build') :CaptureArgs(1) { notFound($c, "Build with ID $id doesn't exist.") if !defined $c->stash->{build}; - $c->stash->{prevBuild} = getPreviousBuild($c->stash->{build}); $c->stash->{prevSuccessfulBuild} = getPreviousSuccessfulBuild($c, $c->stash->{build}); $c->stash->{firstBrokenBuild} = getNextBuild($c, $c->stash->{prevSuccessfulBuild});