From 5eb48edb3b301a812f36f3d53ddebddfc64b9bf9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 3 Dec 2022 20:53:34 +0100 Subject: json2json: station names are no longer considered unique --- share/json2json | 6 ------ 1 file changed, 6 deletions(-) (limited to 'share') diff --git a/share/json2json b/share/json2json index 4a78e80..47cb83d 100755 --- a/share/json2json +++ b/share/json2json @@ -17,12 +17,6 @@ my @ds100 = map { $_->{ds100} } sort { $a->{ds100} cmp $b->{ds100} } @{$stations}; my @eva_ids = map { $_->{eva} } sort { $a->{eva} <=> $b->{eva} } @{$stations}; -for my $i ( 1 .. $#names ) { - if ( $names[ $i - 1 ] eq $names[$i] ) { - say "Duplicate station name: $names[$i]"; - $have_duplicates = 1; - } -} for my $i ( 1 .. $#ds100 ) { if ( $ds100[ $i - 1 ] eq $ds100[$i] ) { say "Duplicate DS100 code: $ds100[$i]"; -- cgit v1.2.3