Skip to content

Commit 8a5cbb5

Browse files
committed
cleanup: Remove unused type
1 parent effaeed commit 8a5cbb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dom/node_list.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import "github.com/gost-dom/browser/internal/entity"
55
type NodeList interface {
66
entity.ObjectIder
77
Length() int
8+
9+
// Item returns the node with the specified zero-based index. If the index
10+
// is out of range, the function returns nil.
811
Item(index int) Node
12+
913
All() []Node
1014
setNodes([]Node)
1115
append(Node)
@@ -16,10 +20,6 @@ type nodeList struct {
1620
nodes []Node
1721
}
1822

19-
type staticNodeSource []Node
20-
21-
func (s staticNodeSource) ChildNodes() []Node { return s }
22-
2323
func (l *nodeList) Length() int { return len(l.nodes) }
2424

2525
func (l *nodeList) Item(index int) Node {

0 commit comments

Comments
 (0)