Remove replica_id
from MultiBuffer
s (#18141)
This PR removes the `replica_id` field from the `MultiBuffer` struct. We were only ever referencing this field to pass when constructing a `MultiBuffer`, and never used it outside of that. Release Notes: - N/A
This commit is contained in:
parent
5f1046b3cd
commit
ab1d466c5f
16 changed files with 54 additions and 84 deletions
|
@ -176,12 +176,11 @@ pub struct ProjectSearchBar {
|
|||
|
||||
impl ProjectSearch {
|
||||
pub fn new(project: Model<Project>, cx: &mut ModelContext<Self>) -> Self {
|
||||
let replica_id = project.read(cx).replica_id();
|
||||
let capability = project.read(cx).capability();
|
||||
|
||||
Self {
|
||||
project,
|
||||
excerpts: cx.new_model(|_| MultiBuffer::new(replica_id, capability)),
|
||||
excerpts: cx.new_model(|_| MultiBuffer::new(capability)),
|
||||
pending_search: Default::default(),
|
||||
match_ranges: Default::default(),
|
||||
active_query: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue