Remove now-unused get_next_tag function.

The only caller was removed by commit c99a211b01.
This commit is contained in:
Heikki Linnakangas
2021-08-11 22:16:38 +03:00
parent 70cb399d59
commit 20d5e757ca
2 changed files with 0 additions and 15 deletions

View File

@@ -497,18 +497,6 @@ impl Timeline for ObjectTimeline {
Ok(())
}
fn get_next_tag(&self, tag: ObjectTag) -> Result<Option<ObjectTag>> {
let key = ObjectKey {
timeline: self.timelineid,
tag,
};
if let Some(key) = self.obj_store.get_next_key(&key)? {
Ok(Some(key.tag))
} else {
Ok(None)
}
}
fn put_raw_data(&self, tag: ObjectTag, lsn: Lsn, data: &[u8]) -> Result<()> {
let key = ObjectKey {
timeline: self.timelineid,

View File

@@ -105,9 +105,6 @@ pub trait Timeline: Send + Sync {
/// Put raw data
fn put_raw_data(&self, tag: ObjectTag, lsn: Lsn, data: &[u8]) -> Result<()>;
// Get object tag greater or equal than specified
fn get_next_tag(&self, tag: ObjectTag) -> Result<Option<ObjectTag>>;
/// Remember the all WAL before the given LSN has been processed.
///
/// The WAL receiver calls this after the put_* functions, to indicate that