Skip to content

Commit

Permalink
vaev-layout: Removed useless code in Prose painting.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 26, 2024
1 parent 6f1a635 commit 8145a33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/vaev-layout/paint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ static void _paintBox(Box &box, Scene::Stack &stack) {
if (auto prose = box.content.is<Strong<Text::Prose>>()) {
(*prose)->_style.color = currentColor;

Karm::Text::Font font = {box.fontFace, box.layout.fontSize.cast<f64>()};
Math::Vec2f baseline = {0, font.metrics().ascend};
stack.add(makeStrong<Scene::Text>(
box.layout.borderBox().topStart().cast<f64>(),
*prose
Expand Down

0 comments on commit 8145a33

Please sign in to comment.