Remove test-only transaction_group_interval method from MultiBuffer

This commit is contained in:
Antonio Scandurra 2021-12-14 14:17:33 +01:00
parent 2d1ff8f606
commit 119d44caf7
2 changed files with 5 additions and 10 deletions

View file

@ -15,7 +15,7 @@ use std::{
iter::{self, FromIterator, Peekable},
ops::{Range, Sub},
sync::Arc,
time::{Duration, Instant, SystemTime},
time::{Instant, SystemTime},
};
use sum_tree::{Bias, Cursor, SumTree};
use text::{
@ -136,13 +136,6 @@ impl MultiBuffer {
self.replica_id
}
pub fn transaction_group_interval(&self, cx: &AppContext) -> Duration {
self.as_singleton()
.unwrap()
.read(cx)
.transaction_group_interval()
}
pub fn snapshot(&self, cx: &AppContext) -> MultiBufferSnapshot {
self.sync(cx);
self.snapshot.borrow().clone()