remove height_r
This commit is contained in:
parent
2372c1a1f6
commit
0b29004de2
@ -133,7 +133,6 @@ pub trait BinaryTreesMutable<'a>: BinaryTreesEmpty<'a> + BinaryTreesTreeOf<'a> {
|
||||
|
||||
pub trait BinaryTreesHeight<'a>: BinaryTrees<'a> {
|
||||
fn height(&self, tree: &Self::Tree) -> u64;
|
||||
fn height_r(&self, reference: &Self::Reference) -> u64;
|
||||
fn leaf_height_error<T: 'a>(&self, height: u64) -> BTWrap<'a, Self, T>;
|
||||
}
|
||||
|
||||
|
@ -155,10 +155,6 @@ impl<'a, BT: BinaryTreesBindable<'a> + BinaryTreesHeight<'a>> BinaryTreesHeight<
|
||||
self.0.height(&tree.bound)
|
||||
}
|
||||
|
||||
fn height_r(&self, reference: &Self::Reference) -> u64 {
|
||||
self.0.height_r(&reference.bound)
|
||||
}
|
||||
|
||||
fn leaf_height_error<T: 'a>(&self, height: u64) -> BTWrap<'a, Self, T> {
|
||||
self.0.leaf_height_error(height)
|
||||
}
|
||||
|
@ -181,10 +181,6 @@ impl<'a, A: 'a + PartialOrd + Clone> BinaryTreesHeight<'a> for AvlTs<A> {
|
||||
tree.height
|
||||
}
|
||||
|
||||
fn height_r(&self, reference: &Self::Reference) -> u64 {
|
||||
reference.height
|
||||
}
|
||||
|
||||
fn leaf_height_error<T: 'a>(&self, height: u64) -> BTWrap<'a, Self, T> {
|
||||
panic!("leaf height error: {height}.")
|
||||
}
|
||||
|
@ -108,10 +108,6 @@ impl<'a, Ctx: Context<'a>, A: Mentionable<'a, Ctx> + Clone, C: 'a + Comparator<A
|
||||
tree.height()
|
||||
}
|
||||
|
||||
fn height_r(&self, reference: &Self::Reference) -> u64 {
|
||||
reference.height()
|
||||
}
|
||||
|
||||
fn leaf_height_error<T: 'a>(&self, height: u64) -> BTWrap<'a, Self, T> {
|
||||
<FallibleMonad<'a, Ctx, _> as Fail<_>>::fail(ResolutionError::Parse(BoundError::Avl(
|
||||
AvlError::LeafHeight(height),
|
||||
|
Loading…
Reference in New Issue
Block a user