From 25148e2ff91ef3158af0cfa938a248f014a8233e Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 21 Feb 2024 17:01:06 +0100 Subject: [PATCH] cleanup: removed duplicate implementation --- src/api/textselection.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/api/textselection.rs b/src/api/textselection.rs index a551248..341c2c6 100644 --- a/src/api/textselection.rs +++ b/src/api/textselection.rs @@ -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, StamError> { - self.resource() - .textselection_by_offset(&self.absolute_offset(offset)?) - } - pub(crate) fn store(&self) -> &'store TextResource { match self { Self::Bound(item) => item.store(),