diff options
| author | trustable-code <krauter.simon@arcor.de> | 2018-03-17 20:13:35 +0100 |
|---|---|---|
| committer | trustable-code <krauter.simon@arcor.de> | 2018-03-17 20:13:35 +0100 |
| commit | a13a3f6a7125ee98e7dcd56d58662b790d0b4180 (patch) | |
| tree | 6a015ff4aa89cb26e0cc14d336fe7a1b789c9287 /src | |
| parent | f82a14f381d0b84f8fccf243c5f987ae62bc448d (diff) | |
| download | NiGui-a13a3f6a7125ee98e7dcd56d58662b790d0b4180.tar.gz NiGui-a13a3f6a7125ee98e7dcd56d58662b790d0b4180.zip | |
Remove countLines() and use fixed version in strutils
Diffstat (limited to 'src')
| -rwxr-xr-x | src/nigui.nim | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nigui.nim b/src/nigui.nim index 6b50dee..e4f5d85 100755 --- a/src/nigui.nim +++ b/src/nigui.nim @@ -885,8 +885,6 @@ method realignChildControls(control: Control) method setControlPosition(container: Container, control: Control, x, y: int) -proc countLines(s: string): int - # ======================================================================================== # @@ -937,19 +935,6 @@ proc rgb(red, green, blue: byte, alpha: byte = 255): Color = result.blue = blue result.alpha = alpha -# Should removed here, when version in strutils is fixed -proc countLines(s: string): int = - result = 1 - var i = 0 - while i < s.len: - case s[i] - of '\c': - if s[i+1] == '\l': inc i - inc result - of '\l': inc result - else: discard - inc i - proc unicodeToUpper(unicode: int): int = if unicode < 128: return cast[int](cast[char](unicode).toUpper) |
