code clean
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
2024-02-15 18:44:21 +01:00
parent f97dd7bde2
commit 06651dc878
2 changed files with 23 additions and 41 deletions

View File

@ -406,9 +406,6 @@ impl Ueberschrift {
fn test(n: &Node, typ: &str) -> bool {
n.tag_name().name() == "ueberschrift" && n.attribute("typ").unwrap() == typ
}
fn test_with_typ_and_content(n: &Node, typ: &str, content: &str) -> bool {
Self::test(n, typ) && n.text().unwrap() == content
}
pub(crate) fn parse(n: Node, typ: &str) -> Self {
assert!(n.tag_name().name() == "ueberschrift");