diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-08 01:32:17 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-08 01:32:17 +0200 |
commit | def6f3e5c28974063b650db194a0c055d4dea685 (patch) | |
tree | d5281535fe5c638a83f2343506d7e68209b5e965 /src/utils | |
parent | f037d5ecadbdfeadf9c684341964d9c350a9cff4 (diff) | |
download | chawan-def6f3e5c28974063b650db194a0c055d4dea685.tar.gz |
remove dead code, fix openArray casing
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/twtstr.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index f0a64546..4f51d6a8 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -23,9 +23,6 @@ func onlyWhitespace*(s: string): bool = func isControlChar*(r: Rune): bool = return int(r) <= 0x1F or int(r) == 0x7F -func isC0ControlOrSpace*(c: char): bool = - return c in (Controls + {' '}) - func getControlChar*(c: char): char = if c == '?': return char(127) @@ -509,7 +506,7 @@ func dqEscape*(s: string): string = result &= c #basically std join but with char -func join*(ss: openarray[string], sep: char): string = +func join*(ss: openArray[string], sep: char): string = if ss.len == 0: return "" var n = ss.high - 1 |