Skip to content

Commit

Permalink
Remove "no strict" where it's no longer needed
Browse files Browse the repository at this point in the history
The dangerous code was moved to a subroutine.
  • Loading branch information
choroba committed Apr 24, 2024
1 parent d526f16 commit e082823
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tred_refactored/btred
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,6 @@ sub secondaryDocumentsTo ($$) {
sub closeFile {
my ($grp) = @_;
doEvalHook( $grp, "file_close_hook" ) if $grp->{FSFile};
no strict qw(refs);
set_macro_variable( 'TredMacro::NodeClipboard' => undef );

# close required files too, unless file remains pre-loaded
Expand Down Expand Up @@ -2447,7 +2446,6 @@ sub closeAllPreloaded {
sub doEvalHook {
my ( $group, $hook ) = ( shift, shift );
return if $NO_HOOKS;
no strict qw(refs);
return unless $hook; # and $group->{'currentNode'};

my $old_ctxt = TrEd::Macros::save_ctxt();
Expand Down Expand Up @@ -2484,7 +2482,6 @@ sub doEvalHook {
sub doEvalMacro {
my ( $group, $macro ) = ( shift, shift );
return unless $macro;
no strict qw(refs);
set_macro_variable(
this => $group->{currentNode},
root => $group->{root},
Expand Down Expand Up @@ -2695,7 +2692,6 @@ sub switchContext {

sub updateTredMacroGlobals {
my ($grp) = @_;
no strict qw(refs);
set_macro_variable(
root => $grp->{root},
this => $grp->{currentNode}
Expand Down

0 comments on commit e082823

Please sign in to comment.