Skip to content

Commit

Permalink
[231] Remove dead code according to code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ikopylov committed Aug 14, 2023
1 parent c8b1e5c commit 4730a8a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/blob/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,31 +270,6 @@ where
Ok(WriteResult { dirty_bytes: self.file.dirty_bytes() })
}

#[allow(dead_code)]
pub(crate) async fn read_latest(
&self,
key: &K,
meta: Option<&Meta>,
check_filters: bool,
) -> Result<ReadResult<Bytes>> {
debug!("blob read any");
let entry = self.get_latest_entry(key, meta, check_filters).await?;
match entry {
ReadResult::Found(entry) => {
debug!("blob read any entry found");
let buf = entry
.load()
.await
.with_context(|| format!("failed to read data for key {:?} with meta {:?}", key, meta))?
.into_data();
debug!("blob read any entry loaded bytes: {}", buf.len());
Ok(ReadResult::Found(buf))
}
ReadResult::Deleted(ts) => Ok(ReadResult::Deleted(ts)),
ReadResult::NotFound => Ok(ReadResult::NotFound),
}
}

#[allow(dead_code)]
#[inline]
pub(crate) async fn read_all_entries(&self, key: &K) -> Result<Vec<Entry>> {
Expand Down

0 comments on commit 4730a8a

Please sign in to comment.