about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/local')
-rw-r--r--src/local/term.nim9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/local/term.nim b/src/local/term.nim
index c984e9d8..d99da8ed 100644
--- a/src/local/term.nim
+++ b/src/local/term.nim
@@ -488,15 +488,6 @@ proc encodeAllQMark(res: var string; start: int; te: TextEncoder;
         w += 1 - te.c.width()
         n = res.len
 
-proc validateUTF8Surr(s: openArray[char]; start = 0): int =
-  #TODO move to chagashi
-  var ctx = initTextDecoderContext(CHARSET_UTF_8, errorMode = demFatal)
-  for chunk in ctx.decode(s.toOpenArrayByte(0, s.high), finish = true):
-    discard
-  if ctx.failed:
-    return ctx.td.ri + 1
-  return -1
-
 proc processOutputString*(res: var string; term: Terminal; s: openArray[char];
     w: var int) =
   if s.len == 0: