refactor: remove obsolete Editor.selection_pos_to_width function

This commit is contained in:
CJ van den Berg 2025-11-25 13:30:28 +01:00
parent f71f984dcd
commit 34af852634
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 1 additions and 6 deletions

View file

@ -5886,11 +5886,6 @@ pub const Editor = struct {
}
}
pub fn selection_pos_to_width(self: *Self, sel_: Selection) ?Selection {
const root = self.buf_root() catch return null;
return sel_.from_pos(root, self.metrics) catch null;
}
fn count_lines(content: []const u8) struct { usize, usize } {
var pos = content;
var offset = content.len;