Skip to content

Commit

Permalink
refactor: Tree internals
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove Deref/DrefMut to "TreeInterface", which
has been removed.
  • Loading branch information
molpopgen committed Feb 24, 2025
1 parent 7c68f28 commit bacf9df
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/trees/tree.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::ops::Deref;
use std::ops::DerefMut;

use crate::sys::bindings as ll_bindings;
use crate::sys::{LLTree, TreeSequence};
use crate::Position;
Expand All @@ -17,19 +14,6 @@ pub struct Tree<'treeseq> {
advanced: i32,
}

impl Deref for Tree<'_> {
type Target = TreeInterface;
fn deref(&self) -> &Self::Target {
&self.api
}
}

impl DerefMut for Tree<'_> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.api
}
}

impl<'treeseq> Tree<'treeseq> {
pub(crate) fn new<F: Into<TreeFlags>>(
ts: &'treeseq crate::sys::TreeSequence,
Expand Down

0 comments on commit bacf9df

Please sign in to comment.