Remove small pieces of unused code

This commit is contained in:
Max Brunsfeld
2021-04-02 14:26:53 -07:00
parent ce6ca13b13
commit dd31b870c3
10 changed files with 6 additions and 31 deletions
-4
View File
@@ -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()
+1 -1
View File
@@ -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;
-1
View File
@@ -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,