refactor: remove unused function lastNode

This commit is contained in:
Laytan Laats 2023-03-25 15:12:21 +01:00
parent 74a8771740
commit 226f7fb5f1
2 changed files with 0 additions and 18 deletions

View File

@ -54,12 +54,3 @@ func (p *Parser) Parse() int {
func (p *Parser) GetRootNode() ast.Vertex {
return p.rootNode
}
// helpers
func lastNode(nn []ast.Vertex) ast.Vertex {
if len(nn) == 0 {
return nil
}
return nn[len(nn)-1]
}

View File

@ -55,12 +55,3 @@ func (p *Parser) Parse() int {
func (p *Parser) GetRootNode() ast.Vertex {
return p.rootNode
}
// helpers
func lastNode(nn []ast.Vertex) ast.Vertex {
if len(nn) == 0 {
return nil
}
return nn[len(nn)-1]
}