Skip to content

Commit

Permalink
remove obsolete comments related to nimsuggest (#894)
Browse files Browse the repository at this point in the history
<!--- The Pull Request (=PR) message is what will get automatically used
as
the commit message when the PR is merged. Make sure that no line is
longer
than 72 characters -->

Removed obsolete comments related to nimsuggest from the `nimsuggest`
and `suggest` modules.
  • Loading branch information
bung87 authored Sep 12, 2023
1 parent 555f0f9 commit 228e8dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions compiler/tools/suggest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
## - In any case, sorting also considers scoping information. Local variables
## get high priority.

# included from sigmatch.nim

import
std/[
Expand Down Expand Up @@ -77,7 +76,6 @@ when defined(nimsuggest):
const
sep = '\t'

#template sectionSuggest(): expr = "##begin\n" & getStackTrace() & "##end\n"

template origModuleName(m: PSym): string = m.name.s

Expand Down Expand Up @@ -313,7 +311,6 @@ proc suggestSymList(c: PContext, list, f: PNode; info: TLineInfo, outputs: var S
for i in 0..<list.len:
if list[i].kind == nkSym:
suggestField(c, list[i].sym, f, info, outputs)
#else: InternalError(list.info, "getSymFromList")

proc suggestObject(c: PContext, n, f: PNode; info: TLineInfo, outputs: var Suggestions) =
case n.kind
Expand Down Expand Up @@ -478,7 +475,6 @@ when defined(nimsuggest):

when defined(nimsuggest):
proc listUsages*(g: ModuleGraph; s: PSym) =
#echo "usages ", s.allUsages.len
for info in s.allUsages:
let x = if info == s.info: ideDef else: ideUse
suggestResult(g.config, symToSuggest(g, s, isLocal=false, x, info, 100, PrefixMatch.None, false, 0))
Expand Down
6 changes: 0 additions & 6 deletions nimsuggest/nimsuggest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ when not defined(nimcore):
import std/[strutils, os, parseopt, parseutils, sequtils, net, rdstdin]
import experimental/sexp
import std/options as std_options

# Do NOT import suggest. It will lead to weird bugs with
# suggestionResultHook, because suggest.nim is included by sigmatch.
# So we import that one instead.


import
compiler/ast/[
idents,
Expand Down

0 comments on commit 228e8dd

Please sign in to comment.