From 113bd34b6c758c522f421a929cc5bd27ec1764f5 Mon Sep 17 00:00:00 2001 From: narimiran Date: Wed, 31 Aug 2022 17:09:21 +0200 Subject: [PATCH] remove duplicate definitions of the two iterators --- compiler/modulegraphs.nim | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/compiler/modulegraphs.nim b/compiler/modulegraphs.nim index 5d3d4a8b3f..e6d390ee2f 100644 --- a/compiler/modulegraphs.nim +++ b/compiler/modulegraphs.nim @@ -626,16 +626,6 @@ proc onProcessing*(graph: ModuleGraph, fileIdx: FileIndex, moduleStatus: string, let mode = if isNimscript: "(nims) " else: "" rawMessage(conf, hintProcessing, "$#$# $#: $#: $#" % [mode, indent, fromModule2, moduleStatus, path]) -iterator suggestSymbolsIter*(g: ModuleGraph): tuple[sym: PSym, info: TLineInfo] = - for xs in g.suggestSymbols.values: - for x in xs.deduplicate: - yield x - -iterator suggestErrorsIter*(g: ModuleGraph): Suggest = - for xs in g.suggestErrors.values: - for x in xs: - yield x - proc getPackage*(graph: ModuleGraph; fileIdx: FileIndex): PSym = ## Returns a package symbol for yet to be defined module for fileIdx. ## The package symbol is added to the graph if it doesn't exist.