remove unused nimfind defines (#20250)

remove unused nimfind
This commit is contained in:
ringabout 2022-08-24 01:08:56 +08:00 • committed by GitHub
commit 7d7886b729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,21 +372,6 @@ template getPContext(): untyped =
when c is PContext: c when c is PContext: c
else: c.c else: c.c
when defined(nimfind):
template onUse*(info: TLineInfo; s: PSym) =
let c = getPContext()
if c.graph.onUsage != nil: c.graph.onUsage(c.graph, s, info)
template onDef*(info: TLineInfo; s: PSym) =
let c = getPContext()
if c.graph.onDefinition != nil: c.graph.onDefinition(c.graph, s, info)
template onDefResolveForward*(info: TLineInfo; s: PSym) =
let c = getPContext()
if c.graph.onDefinitionResolveForward != nil:
c.graph.onDefinitionResolveForward(c.graph, s, info)
else:
when defined(nimsuggest): when defined(nimsuggest):
template onUse*(info: TLineInfo; s: PSym) = discard template onUse*(info: TLineInfo; s: PSym) = discard