Remove no-longer-needed method

This commit is contained in:
Joseph Lyons 2023-01-25 20:03:44 -05:00
parent 6e7101ca6b
commit 9ff34bcb6a

View File

@ -102,7 +102,7 @@ struct FeedbackEditor {
}
impl FeedbackEditor {
fn new_with_buffer(
fn new(
project: ModelHandle<Project>,
buffer: ModelHandle<Buffer>,
cx: &mut ViewContext<Self>,
@ -120,14 +120,6 @@ impl FeedbackEditor {
Self { editor, project }
}
fn new(
project: ModelHandle<Project>,
buffer: ModelHandle<Buffer>,
cx: &mut ViewContext<Self>,
) -> Self {
Self::new_with_buffer(project, buffer, cx)
}
fn handle_save(
&mut self,
_: ModelHandle<Project>,
@ -348,11 +340,7 @@ impl Item for FeedbackEditor {
.as_singleton()
.expect("Feedback buffer is only ever singleton");
Some(Self::new_with_buffer(
self.project.clone(),
buffer.clone(),
cx,
))
Some(Self::new(self.project.clone(), buffer.clone(), cx))
}
fn serialized_item_kind() -> Option<&'static str> {