mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 13:44:09 +03:00
Remove no-longer-needed method
This commit is contained in:
parent
6e7101ca6b
commit
9ff34bcb6a
@ -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 New Issue
Block a user