diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-27 00:12:08 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-27 00:12:08 +0200 |
commit | fef31da5c9fe39bc3fc07092ee21360850382cdf (patch) | |
tree | cb7f30b92b4e7a3c53b45f377a2376f4ac13497d /src | |
parent | a7c04f7aa835609724552d3f889234a2cacaa446 (diff) | |
download | chawan-fef31da5c9fe39bc3fc07092ee21360850382cdf.tar.gz |
layout: remove unused variables
Diffstat (limited to 'src')
-rw-r--r-- | src/layout/engine.nim | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index d0678435..9f4eff0a 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -559,7 +559,6 @@ proc calcAvailableHeight(box: BlockBox, containingHeight: SizeConstraint, proc calcAbsoluteAvailableWidth(box: BlockBox, containingWidth: SizeConstraint) = let viewport = box.viewport - let computed = box.computed let left = box.computed{"left"} let right = box.computed{"right"} let width = box.computed{"width"} @@ -591,7 +590,6 @@ proc calcAbsoluteAvailableWidth(box: BlockBox, proc calcAbsoluteAvailableHeight(box: BlockBox, containingHeight: SizeConstraint) = let viewport = box.viewport - let computed = box.computed #TODO this might be incorrect because of percHeight? let top = box.computed{"top"} let bottom = box.computed{"bottom"} @@ -620,7 +618,6 @@ proc calcAbsoluteAvailableHeight(box: BlockBox, # boxes. proc calcAbsoluteAvailableSizes(box: BlockBox) = let viewport = box.viewport - let computed = box.computed let containingWidth = viewport.positioned[^1].availableWidth let containingHeight = viewport.positioned[^1].availableHeight box.resolveMargins(containingWidth, viewport) |