Remove wrap method from Frame

This commit is contained in:
Joscha 2022-09-26 17:34:38 +02:00
parent f48901f543
commit 06aefd562b
2 changed files with 2 additions and 6 deletions

View file

@ -4,7 +4,6 @@ use crate::buffer::Buffer;
pub use crate::buffer::{Pos, Size};
use crate::styled::Styled;
use crate::widthdb::WidthDb;
use crate::wrap;
#[derive(Debug, Default)]
pub struct Frame {
@ -49,10 +48,6 @@ impl Frame {
&mut self.widthdb
}
pub fn wrap(&mut self, text: &str, width: usize) -> Vec<usize> {
wrap::wrap(&mut self.widthdb, text, width)
}
pub fn write<S: Into<Styled>>(&mut self, pos: Pos, styled: S) {
self.buffer.write(&mut self.widthdb, pos, &styled.into());
}