Permalink
Browse files

no need for node.Len()

  • Loading branch information...
1 parent a13b3c5 commit 487b53587b0de3b9c1838883998a8110feab9594 @ryszard committed May 8, 2012
Showing with 0 additions and 7 deletions.
  1. +0 −7 skiplist.go
View
7 skiplist.go
@@ -34,13 +34,6 @@ func (n *node) Value() interface{} {
return n.value
}
-func (n node) Len() int {
- if n.HasNext() {
- return 1 + n.Next().Len()
- }
- return 1
-}
-
type SkipList struct {
lessThan func(l, r interface{}) bool
header *node

0 comments on commit 487b535

Please sign in to comment.