fixed compiler warnings

This commit is contained in:
Felix Krause 2021-10-22 17:46:05 +02:00
parent c681498701
commit d704a8c6d7
2 changed files with 1 additions and 8 deletions

View File

@ -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

View File

@ -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.}