]> git.donarmstrong.com Git - perltidy.git/commitdiff
remove duplicate code
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 5 Feb 2023 19:07:11 +0000 (11:07 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 5 Feb 2023 19:07:11 +0000 (11:07 -0800)
lib/Perl/Tidy/Formatter.pm

index 501ddbc6a492ee44e99cdef74acf12855512a260..0462183d5b553ccab5982ac0c44867a471643deb 100644 (file)
@@ -2730,12 +2730,6 @@ sub initialize_whitespace_hashes {
     # simple as adding your new letter to @spaces_both_sides, for
     # example.
 
-    my @opening_type = qw< L { ( [ >;
-    @is_opening_type{@opening_type} = (1) x scalar(@opening_type);
-
-    my @closing_type = qw< R } ) ] >;
-    @is_closing_type{@closing_type} = (1) x scalar(@closing_type);
-
     my @spaces_both_sides = qw#
       + - * / % ? = . : x < > | & ^ .. << >> ** && .. || // => += -=
       .= %= x= &= |= ^= *= <> <= >= == =~ !~ /= != ... <<= >>= ~~ !~~