mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 03:40:37 +00:00
refactor: remove unused symbols (#5193)
chore: remove unused symbols Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -204,10 +204,6 @@ impl Context {
|
||||
pub fn reset_in_memory(&self) {
|
||||
self.in_memory.reset();
|
||||
}
|
||||
|
||||
pub fn reset_leader_cached_kv_backend(&self) {
|
||||
self.leader_cached_kv_backend.reset();
|
||||
}
|
||||
}
|
||||
|
||||
/// The value of the leader. It is used to store the leader's address.
|
||||
|
||||
@@ -52,11 +52,6 @@ pub async fn mock_with_etcdstore(addr: &str) -> MockInfo {
|
||||
mock(Default::default(), kv_backend, None, None, None).await
|
||||
}
|
||||
|
||||
pub async fn mock_with_memstore_and_selector(selector: SelectorRef) -> MockInfo {
|
||||
let kv_backend = Arc::new(MemoryKvBackend::new());
|
||||
mock(Default::default(), kv_backend, Some(selector), None, None).await
|
||||
}
|
||||
|
||||
pub async fn mock(
|
||||
opts: MetasrvOptions,
|
||||
kv_backend: KvBackendRef,
|
||||
|
||||
@@ -364,12 +364,6 @@ impl Context {
|
||||
Ok(datanode_value.as_ref().unwrap())
|
||||
}
|
||||
|
||||
/// Removes the `table_info` of [VolatileContext], returns true if any.
|
||||
pub fn remove_table_info_value(&mut self) -> bool {
|
||||
let value = self.volatile_ctx.table_info.take();
|
||||
value.is_some()
|
||||
}
|
||||
|
||||
/// Returns the [RegionId].
|
||||
pub fn region_id(&self) -> RegionId {
|
||||
self.persistent_ctx.region_id
|
||||
|
||||
Reference in New Issue
Block a user