Skip to content

Commit

Permalink
removed undef %ai_v from ai::clear
Browse files Browse the repository at this point in the history
  • Loading branch information
maikelvf committed Aug 17, 2024
1 parent 82f9af1 commit dab18d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions src/AI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ sub clear {
if ($total == 0) {
undef @ai_seq;
undef @ai_seq_args;
undef %ai_v;

# If 1 arg was given find it in the queue
} elsif ($total == 1) {
Expand All @@ -161,17 +160,6 @@ sub clear {
}
}

sub clearExceptTimeouts {
undef @ai_seq;
undef @ai_seq_args;

foreach (keys %ai_v) {
if ($_ !~ /_time$/m) {
delete $ai_v{$_};
}
}
}

sub suspend {
my $i = (defined $_[0] ? $_[0] : 0);
$ai_seq_args[$i]{suspended} = time if $i < @ai_seq_args;
Expand Down
2 changes: 1 addition & 1 deletion src/Network/Receive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7215,7 +7215,7 @@ sub map_change {
}

if ($ai_v{temp}{clear_aiQueue}) {
AI::clearExceptTimeouts;
AI::clear;
AI::SlaveManager::clear();
}

Expand Down

0 comments on commit dab18d6

Please sign in to comment.