From: Steve Hancock Date: Sun, 5 Feb 2023 19:07:11 +0000 (-0800) Subject: remove duplicate code X-Git-Tag: 20230309~37 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=97e7f1264fa336f7cff1368ae765bdfff61f1847;p=perltidy.git remove duplicate code --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 501ddbc6..0462183d 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -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= &= |= ^= *= <> <= >= == =~ !~ /= != ... <<= >>= ~~ !~~