diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-12 21:19:18 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-12 21:19:18 +0100 |
commit | 5397e3a4c2cd5f5768413fa05dc35e9722abcd36 (patch) | |
tree | 0549dea6c381963d46a7794c0dd258b983944cc6 | |
parent | 7108754641cefb3f01af8e29aae11695d94e980c (diff) | |
download | chawan-5397e3a4c2cd5f5768413fa05dc35e9722abcd36.tar.gz |
Clean up unused imports
-rw-r--r-- | src/css/style.nim | 1 | ||||
-rw-r--r-- | src/html/dom.nim | 2 | ||||
-rw-r--r-- | src/io/lineedit.nim | 1 | ||||
-rw-r--r-- | src/layout/box.nim | 11 | ||||
-rw-r--r-- | src/layout/layout.nim | 1 |
5 files changed, 0 insertions, 16 deletions
diff --git a/src/css/style.nim b/src/css/style.nim index 88a5d008..2e5d6c9f 100644 --- a/src/css/style.nim +++ b/src/css/style.nim @@ -1,5 +1,4 @@ import unicode -import terminal import tables import utils/twtstr diff --git a/src/html/dom.nim b/src/html/dom.nim index 4e296b0c..9c918b8b 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -1,4 +1,3 @@ -import terminal import uri import unicode import strutils @@ -13,7 +12,6 @@ import css/style import css/parser import css/selector import types/enums -import utils/twtstr const css = staticRead"res/default.css" let stylesheet = parseCSS(newStringStream(css)) diff --git a/src/io/lineedit.nim b/src/io/lineedit.nim index fd2b0b93..1b1a80d4 100644 --- a/src/io/lineedit.nim +++ b/src/io/lineedit.nim @@ -5,7 +5,6 @@ import sequtils import sugar import utils/twtstr -import utils/radixtree import config/config type LineState = object diff --git a/src/layout/box.nim b/src/layout/box.nim index 21c56afa..57595f4b 100644 --- a/src/layout/box.nim +++ b/src/layout/box.nim @@ -1,7 +1,5 @@ import unicode -import utils/twtstr -import io/cell import types/enums import css/style @@ -54,12 +52,3 @@ type CSSBlockBox* = ref CSSBlockBoxObj CSSBlockBoxObj = object of CSSBox tag*: string - -func `+`(a: CSSRect, b: CSSRect): CSSRect = - result.x1 = a.x1 + b.x1 - result.y1 = a.y1 + b.y1 - result.x2 = a.x2 + b.x2 - result.y2 = a.y2 + b.y2 - -proc `+=`(a: var CSSRect, b: CSSRect) = - a = a + b diff --git a/src/layout/layout.nim b/src/layout/layout.nim index 234e54f0..a74f58c7 100644 --- a/src/layout/layout.nim +++ b/src/layout/layout.nim @@ -6,7 +6,6 @@ import types/enums import html/dom import css/style import io/buffer -import io/cell import utils/twtstr func newContext*(box: CSSBox): InlineContext = |