Remove small pieces of unused code
This commit is contained in:
@@ -1650,10 +1650,6 @@ impl Fragment {
|
||||
self.text = self.insertion.text.slice(self.start_offset()..offset);
|
||||
}
|
||||
|
||||
fn as_str(&self) -> &str {
|
||||
self.text.as_str()
|
||||
}
|
||||
|
||||
fn visible_len(&self) -> usize {
|
||||
if self.is_visible() {
|
||||
self.len()
|
||||
|
||||
@@ -8,7 +8,7 @@ use gpui::{
|
||||
},
|
||||
text_layout::{self, TextLayoutCache},
|
||||
AfterLayoutContext, AppContext, Border, Element, Event, EventContext, FontCache, LayoutContext,
|
||||
MutableAppContext, PaintContext, Quad, Scene, SizeConstraint, ViewHandle,
|
||||
PaintContext, Quad, Scene, SizeConstraint, ViewHandle,
|
||||
};
|
||||
use smallvec::SmallVec;
|
||||
use std::cmp::Ordering;
|
||||
|
||||
@@ -4,7 +4,6 @@ use super::{
|
||||
};
|
||||
use crate::{settings::Settings, watch, workspace};
|
||||
use anyhow::Result;
|
||||
use easy_parallel::Parallel;
|
||||
use gpui::{
|
||||
fonts::Properties as FontProperties, keymap::Binding, text_layout, App, AppContext, Element,
|
||||
ElementBox, Entity, FontCache, ModelHandle, View, ViewContext, WeakViewHandle,
|
||||
|
||||
Reference in New Issue
Block a user