diff --git a/libs/remote_storage/src/lib.rs b/libs/remote_storage/src/lib.rs index 04335d8f2f..3bbffd6941 100644 --- a/libs/remote_storage/src/lib.rs +++ b/libs/remote_storage/src/lib.rs @@ -104,11 +104,6 @@ pub trait RemoteStorage: Send + Sync + 'static { ) -> Result; async fn delete(&self, path: &RemotePath) -> anyhow::Result<()>; - - /// Downcast to LocalFs implementation. For tests. - fn as_local(&self) -> Option<&LocalFs> { - None - } } pub struct Download { diff --git a/libs/remote_storage/src/local_fs.rs b/libs/remote_storage/src/local_fs.rs index 3e2bded203..50a84eb33f 100644 --- a/libs/remote_storage/src/local_fs.rs +++ b/libs/remote_storage/src/local_fs.rs @@ -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 {