mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Remove no-longer-needed method
This commit is contained in:
parent
6e7101ca6b
commit
9ff34bcb6a
1 changed files with 2 additions and 14 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue