Skip to content

Commit

Permalink
Remove unused to_hashmap method from ObjectStoreConfig implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lizardoluis committed Nov 22, 2024
1 parent 00c79cf commit bbaeb87
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions object_store_factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ impl ObjectStoreConfig {
}
}

pub fn to_hashmap(&self) -> HashMap<String, String> {
match self {
ObjectStoreConfig::Local(config) => config.to_hashmap(),
ObjectStoreConfig::AmazonS3(config) => config.get_options(),
ObjectStoreConfig::GoogleCloudStorage(config) => config.get_options(),
ObjectStoreConfig::Memory => HashMap::new(), // Memory config has no associated data
}
}

pub fn build_object_store(
&self,
) -> Result<Arc<dyn ObjectStore>, object_store::Error> {
Expand Down

0 comments on commit bbaeb87

Please sign in to comment.