Skip to content

Commit

Permalink
vaev-style: Removed some yapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 29, 2024
1 parent c9ae584 commit cec9ad8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/web/vaev-style/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,13 @@ static bool _matchFirstChild(Markup::Element const &e) {
// https://www.w3.org/TR/selectors-4/#the-last-child-pseudo

static bool _matchLastChild(Markup::Element const &e) {
// yap("coucouuuuuu {}", e);
Cursor<Markup::Node> curr = &e;
while (curr->hasNextSibling()) {
auto next = curr->nextSibling();
// yap("next: {}", next);
if (auto el = next.is<Markup::Element>())
return false;
curr = &next.unwrap();
}
// yap("bruh");
return true;
}

Expand Down

0 comments on commit cec9ad8

Please sign in to comment.