Skip to content

Commit

Permalink
remove some old debugging code
Browse files Browse the repository at this point in the history
Gives a slightly shorter and neater sub.

Updates #685
  • Loading branch information
shawnlaffan committed Feb 24, 2018
1 parent 10b64ff commit 26d03a7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/Biodiverse/Randomise.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1702,12 +1702,6 @@ END_PROGRESS_TEXT
# need a copy since we destructively sample it
@target_groups = @unfilled_groups_sorted_arr;

my $check = scalar keys %all_target_groups;
my $check2 = $check;
if (scalar keys %filled_groups) {
$check = scalar keys %target_groups_hash;
}

### get the remaining original groups containing the original label.
### Make sure it's a copy
my %tmp_gp_hash
Expand Down Expand Up @@ -1814,7 +1808,7 @@ END_PROGRESS_TEXT

warn "SELECTING GROUP THAT IS ALREADY FULL $to_group,"
. "$filled_groups{$to_group}, $target_richness{$to_group}, "
. "$check $check2 :: $i\n"
. "$i\n"
if defined $to_group and exists $filled_groups{$to_group};

# Assign this label to its new group.
Expand Down

0 comments on commit 26d03a7

Please sign in to comment.