X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cgi%2Fversion.cgi;h=ab8f3c17a287604aa8e565165c961bd5987c0889;hb=1a1fa6f0af2be9d4076d9aad5f5a84c5fb3d9a8a;hp=e3df1fc1cd2decd453e54c67681a91d07f6b61f2;hpb=6321024b3c612ef7626eef85499a34ee35f7372c;p=debbugs.git diff --git a/cgi/version.cgi b/cgi/version.cgi index e3df1fc..ab8f3c1 100755 --- a/cgi/version.cgi +++ b/cgi/version.cgi @@ -232,7 +232,6 @@ if ($cgi_var{collapse}) { # nodes that can be collapsed are those that have one child # are in the same state as their parent, and are not in a suite foreach my $key (keys %reversed_nodes) { - my ($short_version) = $key =~ m{/(.+)$}; if (not exists $version_to_dist{$key} and @{$reversed_nodes{$key}} <= 1 and defined $version->{parent}{$key} @@ -282,7 +281,6 @@ if ($cgi_var{collapse}) { } foreach my $key (keys %all_states) { - my ($short_version) = $key =~ m{/(.+)$}; next if exists $collapsed_nodes{$key}; next if $cgi_var{ignore_boring} and (not defined $all_states{$key} or $all_states{$key} eq 'absent');