about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-24 23:01:36 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-24 23:01:36 +0100
commitacf7cfad349f45bc97d84e9d0690aa36b1332919 (patch)
treea15c55f193ed34a28ea8cf9f12dbf2e723983bdc /src/layout
parentfc73013902e05eb7c2a9750bf804f2e356bd30f1 (diff)
downloadchawan-acf7cfad349f45bc97d84e9d0690aa36b1332919.tar.gz
Remove some unused declarations
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 64ae4494..9b1e9363 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -90,7 +90,6 @@ proc addAtom(ictx: InlineContext, atom: InlineAtom, maxwidth: int, specified: CS
 
 proc addWord(state: var InlineState) =
   if state.word.str != "":
-    let row = state.ictx.thisrow
     var word = state.word
     word.height = state.ictx.cellheight
     state.ictx.addAtom(word, state.maxwidth, state.specified)
@@ -271,7 +270,6 @@ proc alignInlineBlock(bctx: BlockContext, box: InlineBlockBox, parentcss: CSSSpe
   box.ictx.whitespace = false
 
 proc alignInline(bctx: BlockContext, box: InlineBox) =
-  let box = InlineBox(box)
   assert box.ictx != nil
   if box.newline:
     box.ictx.flushLine()