about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-05-13 20:56:47 +0200
committerbptato <nincsnevem662@gmail.com>2023-05-13 20:56:47 +0200
commit938bb0d0edd2a688e4ab9ca775b2d30ffb907d72 (patch)
treea46ff5ce7ff579aaae276af9be4773da92508adb /src
parent69f607d94130ca3269cffd3de24e2069fdab7b03 (diff)
downloadchawan-938bb0d0edd2a688e4ab9ca775b2d30ffb907d72.tar.gz
remove stray eprint, remove unused make*
Diffstat (limited to 'src')
-rw-r--r--src/html/dom.nim6
-rw-r--r--src/layout/engine.nim1
2 files changed, 0 insertions, 7 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 3b01b14e..7dbe39f1 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -338,15 +338,9 @@ template makes(attrname: string, funcname: string, ts: varargs[TagType]): Reflec
 template makeb(name: string, ts: varargs[TagType]): ReflectEntry =
   (name, name, REFLECT_BOOL, toset(ts), 0)
 
-template makei(name: string, ts: varargs[TagType], default = 0): ReflectEntry =
-  (name, name, REFLECT_INT, toset(ts), default)
-
 template makeigz(name: string, ts: varargs[TagType], default = 0): ReflectEntry =
   (name, name, REFLECT_INT_GREATER_ZERO, toset(ts), default)
 
-template makeigez(name: string, ts: varargs[TagType], default = 0): ReflectEntry =
-  (name, name, REFLECT_INT_GREATER_EQUAL_ZERO, toset(ts), default)
-
 const ReflectTable0 = [
   # non-global attributes
   makes("target", TAG_A, TAG_AREA, TAG_LABEL, TAG_LINK),
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index d2aa09a9..f46190e8 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -429,7 +429,6 @@ proc resolveDimensions(box: BlockBox, availableWidth: int, availableHeight: Opti
     box.contentWidth = widthpx
     box.max_width = some(widthpx)
     box.min_width = some(widthpx)
-  eprint "resolve", computed{"width"}
   box.resolveContentWidth(widthpx, availableWidth, computed{"width"}.auto)
   if not computed{"max-width"}.auto:
     let max_width = computed{"max-width"}.px(viewport, availableWidth)