remove some dead code

master
magical 2022-01-23 00:37:25 +00:00
parent 1dc489d463
commit c446aef67c
1 changed files with 0 additions and 15 deletions

15
pmap.go
View File

@ -66,21 +66,6 @@ func (p pmap) Set(k Key, v Value) Map {
} }
//pretty.Println(p) //pretty.Println(p)
return p return p
//p.root = leaf{k, v}
//p.len = 1
//return p
h = hash(k) // TODO: p.hash
n, _ := p.root.(*node)
if n == nil {
n = &node{}
}
n.child[h&nodeMask] = leaf{k, v}
n.bitmap = 1 << (h & nodeMask)
p.root = n
p.len++
return p
} }
func (p pmap) Del(k Key) Map { func (p pmap) Del(k Key) Map {