forked from lix-project/hydra
Remove dead code
This commit is contained in:
parent
baafe77489
commit
af2b0c8bad
|
@ -244,17 +244,6 @@ BLOCK renderStatus;
|
|||
END;
|
||||
|
||||
|
||||
BLOCK renderInputValue;
|
||||
IF input.type == "build" || input.type == "sysbuild";
|
||||
INCLUDE renderFullBuildLink build=input.dependency;
|
||||
ELSIF input.type == "string" || input.type == "boolean" %]
|
||||
<tt>"[% input.value %]"</tt>
|
||||
[% ELSE %]
|
||||
<tt>[% input.uri %][% IF input.revision %] (r[% input.revision %])[% END %]</tt>
|
||||
[% END;
|
||||
END;
|
||||
|
||||
|
||||
BLOCK renderShortInputValue;
|
||||
IF input.type == "build" || input.type == "sysbuild" %]
|
||||
<a href="[% c.uri_for('/build' input.dependency.id) %]">[% input.dependency.id %]</a>
|
||||
|
|
|
@ -250,17 +250,6 @@ sub checkJobsetWrapped {
|
|||
|
||||
# Store the error messages for jobs that failed to evaluate.
|
||||
foreach my $error (@{$jobs->{error}}) {
|
||||
my $bindings = "";
|
||||
foreach my $arg (@{$error->{arg}}) {
|
||||
my $input = $inputInfo->{$arg->{name}}->[$arg->{altnr}] or die "invalid input";
|
||||
$bindings .= ", " if $bindings ne "";
|
||||
$bindings .= $arg->{name} . " = ";
|
||||
given ($input->{type}) {
|
||||
when ("string") { $bindings .= "\"" . $input->{value} . "\""; }
|
||||
when ("boolean") { $bindings .= $input->{value}; }
|
||||
default { $bindings .= "..."; }
|
||||
}
|
||||
}
|
||||
$msg .=
|
||||
($error->{location} ne "" ? "in job ‘$error->{location}’" : "at top-level") .
|
||||
":\n" . $error->{msg} . "\n\n";
|
||||
|
|
Loading…
Reference in a new issue