Skip to content

Commit

Permalink
cleanup: removed duplicate implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Feb 21, 2024
1 parent 3bcb315 commit 25148e2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/api/textselection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,6 @@ impl<'store> ResultTextSelection<'store> {
}
}

/// Return a textselection by *relative* offset.
/// The offset is relative to the current textselection.
pub fn textselection_by_offset(
&self,
offset: &Offset,
) -> Result<ResultTextSelection<'store>, StamError> {
self.resource()
.textselection_by_offset(&self.absolute_offset(offset)?)
}

pub(crate) fn store(&self) -> &'store TextResource {
match self {
Self::Bound(item) => item.store(),
Expand Down

0 comments on commit 25148e2

Please sign in to comment.