summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-28 12:51:41 +0100
committerAraq <rumpf_a@web.de>2018-12-11 21:23:20 +0100
commit199018ef2eb640cb3a5f5736220a752482d69e9b (patch)
tree09c88fb738b9078ce3da2749285253a029b6b1ee /lib
parenta22bf14bb6614d763a50e8fd2dba4a7d7d48c9c1 (diff)
downloadNim-199018ef2eb640cb3a5f5736220a752482d69e9b.tar.gz
test can fail because of invalid spec
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/parsecfg.nim11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/pure/parsecfg.nim b/lib/pure/parsecfg.nim
index b991dd57f..efe679d67 100644
--- a/lib/pure/parsecfg.nim
+++ b/lib/pure/parsecfg.nim
@@ -386,17 +386,6 @@ proc warningStr*(c: CfgParser, msg: string): string {.rtl, extern: "npc$1".} =
   result = `%`("$1($2, $3) Warning: $4",
                [c.filename, $getLine(c), $getColumn(c), msg])
 
-proc ignoreMsg*(c: CfgParser, e: CfgEvent): string {.rtl, extern: "npc$1".} =
-  ## returns a properly formatted warning message containing that
-  ## an entry is ignored.
-  case e.kind
-  of cfgSectionStart: result = c.warningStr("section ignored: " & e.section)
-  of cfgKeyValuePair: result = c.warningStr("key ignored: " & e.key)
-  of cfgOption:
-    result = c.warningStr("command ignored: " & e.key & ": " & e.value)
-  of cfgError: result = e.msg
-  of cfgEof: result = ""
-
 proc getKeyValPair(c: var CfgParser, kind: CfgEventKind): CfgEvent =
   if c.tok.kind == tkSymbol:
     result.kind = kind