Skip to content

Commit 5ccf4a3

Browse files
illusory0x0peter-jerry-ye
authored andcommitted
refactor: remove useless function
1 parent 12666f2 commit 5ccf4a3

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

sorted_set/set.mbt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -465,18 +465,6 @@ impl[T : Show] Show for Node[T] with output(self, logger) {
465465
logger.write_iter(self.iter(), prefix="@sorted_set.of([", suffix="])")
466466
}
467467

468-
///|
469-
fn Node::to_array[T](self : Node[T]) -> Array[T] {
470-
fn aux(n : Node[T]?) -> Array[_] {
471-
match n {
472-
None => []
473-
Some({ value, left, right, .. }) => aux(left) + [value] + aux(right)
474-
}
475-
}
476-
477-
aux(Some(self))
478-
}
479-
480468
///|
481469
pub fn range[V : Compare](self : T[V], low : V, high : V) -> Iter[V] {
482470
range_aux(self.root, low, high)

0 commit comments

Comments
 (0)