Skip to content

Commit

Permalink
remove useless unbound type parameter
Browse files Browse the repository at this point in the history
Unbound type parameters cause performance issues.

Issue found using JuliaLang/julia#46608
  • Loading branch information
nsajko authored and domluna committed Sep 12, 2022
1 parent a3711f6 commit 59e1331
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/styles/default/pretty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,7 @@ end
p_globalrefdoc(style::S, cst::CSTParser.EXPR, s::State) where {S<:AbstractStyle} =
p_globalrefdoc(DefaultStyle(style), cst, s)

function p_globalrefcmd(
ds::DefaultStyle,
cst::CSTParser.EXPR,
s::State,
) where {S<:AbstractStyle}
function p_globalrefcmd(ds::DefaultStyle, cst::CSTParser.EXPR, s::State)
style = getstyle(ds)
# cst[1] is :globalrefcmd
# cst[2] is empty and fullspan is 0 so we can skip it
Expand Down

0 comments on commit 59e1331

Please sign in to comment.