Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Youen Péron committed Nov 16, 2023
1 parent 52e31f5 commit a37033b
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions pkg/xixo/element.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,6 @@ func (n *XMLElement) FirstChild() *XMLElement {
return nil
}

func (n *XMLElement) LastChild() *XMLElement {
if l := len(n.childs); l > 0 {
return n.childs[l-1]
}

return nil
}

func (n *XMLElement) PrevSibling() *XMLElement {
if n.parent != nil {
for i, c := range n.parent.childs {
if c == n {
if i >= 0 {
return n.parent.childs[i-1]
}

return nil
}
}
}

return nil
}

func (n *XMLElement) NextSibling() *XMLElement {
if n.parent != nil {
for i, c := range n.parent.childs {
Expand Down

0 comments on commit a37033b

Please sign in to comment.