Remove useless pub trait method (#3076)

This commit is contained in:
Kirill Bulatov
2022-12-13 14:06:20 +02:00
committed by GitHub
parent d6325aa79d
commit 7a16cde737
2 changed files with 0 additions and 9 deletions

View File

@@ -104,11 +104,6 @@ pub trait RemoteStorage: Send + Sync + 'static {
) -> Result<Download, DownloadError>;
async fn delete(&self, path: &RemotePath) -> anyhow::Result<()>;
/// Downcast to LocalFs implementation. For tests.
fn as_local(&self) -> Option<&LocalFs> {
None
}
}
pub struct Download {

View File

@@ -283,10 +283,6 @@ impl RemoteStorage for LocalFs {
bail!("File {file_path:?} either does not exist or is not a file")
}
}
fn as_local(&self) -> Option<&LocalFs> {
Some(self)
}
}
fn storage_metadata_path(original_path: &Path) -> PathBuf {