Skip to content

Commit b71da5a

Browse files
committed
clean up code
1 parent c9d6627 commit b71da5a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/breakpoints.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,10 @@ function shouldbreak(frame::Frame, pc::Int)
188188
end
189189

190190
function prepare_slotfunction(framecode::FrameCode, body::Union{Symbol,Expr})
191-
uslotnames = Set{Symbol}()
192191
framename, dataname = gensym("frame"), gensym("data")
193192
assignments = Expr[:($dataname = $framename.framedata)]
194193
default = Unassigned()
195-
for slotname in framecode.src.slotnames
196-
if slotname uslotnames
197-
push!(uslotnames, slotname)
198-
else
199-
continue
200-
end
194+
for slotname in unique(framecode.src.slotnames)
201195
list = framecode.slotnamelists[slotname]
202196
if length(list) == 1
203197
maxexpr = :($dataname.last_reference[$(list[1])] > 0 ? $(list[1]) : 0)

0 commit comments

Comments
 (0)