- remove copy-constructor like initialization in avl tree, could be ambiguous for clients of what the output might be. an explicit initialization with explicit comparator is a lot more obvious, more code, but more obvious.

pull/51/head
Emir Pasic 9 years ago
parent 59734f8164
commit 31294e57de

@ -48,11 +48,6 @@ func NewWithStringComparator() *Tree {
return &Tree{Comparator: utils.StringComparator}
}
// New returns a new empty tree with the same comparator.
func (t *Tree) New() trees.Tree {
return &Tree{Comparator: t.Comparator}
}
// Size returns the number of elements stored in the tree.
func (t *Tree) Size() int {
return t.size

Loading…
Cancel
Save