From d704a8c6d78ba321535a592c38f54a420b13d979 Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Fri, 22 Oct 2021 17:46:05 +0200 Subject: [PATCH] fixed compiler warnings --- yaml/presenter.nim | 2 +- yaml/private/lex.nim | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/yaml/presenter.nim b/yaml/presenter.nim index 12e6f76..dcd1e5e 100644 --- a/yaml/presenter.nim +++ b/yaml/presenter.nim @@ -11,7 +11,7 @@ ## This is the presenter API, used for generating YAML character streams. import streams, deques, strutils -import data, taglib, stream, private/internal, hints, parser, stream +import data, taglib, stream, private/internal, hints, parser type PresentationStyle* = enum diff --git a/yaml/private/lex.nim b/yaml/private/lex.nim index 4343ef2..2261224 100644 --- a/yaml/private/lex.nim +++ b/yaml/private/lex.nim @@ -133,13 +133,6 @@ proc isPlainSafe(lex: Lexer): bool {.inline.} = of flowIndicators: result = lex.flowDepth == 0 else: result = true -proc lineWithMarker(lex: Lexer, pos: tuple[line, column: int], - marker: bool): string = - if pos.line == lex.source.lineNumber: - result = lex.source.getCurrentLine(false) - if marker: result.add(spaces(pos.column - 1) & "^\n") - else: result = "" - # lexer states {.push gcSafe, locks: 0.}