Skip to content

Commit

Permalink
Remove superfluous variables
Browse files Browse the repository at this point in the history
  • Loading branch information
derekparker committed Mar 15, 2014
1 parent adb767e commit 2e83874
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ func (t *Trie) Remove(key string) {
for n := node.Parent(); n != nil; n = n.Parent() {
i++
if len(n.Children()) > 1 {
idx := len(rs) - i
r := rs[idx]
r := rs[len(rs)-i]
n.RemoveChild(r)
break
}
Expand Down

0 comments on commit 2e83874

Please sign in to comment.