Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Dec 9, 2024
1 parent ae54972 commit c63c9a0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,6 @@ static STORAGE_DBS: Lazy<Vec<&'static dyn StorageDBInfo>> = Lazy::new(|| {
v
});

#[cfg(test)]
pub fn suffix_to_type(name: &str) -> Result<&'static str> {
for i in 0..STORAGE_DBS.len() {
let suffix = STORAGE_DBS[i].dbsuffix();
if suffix == "" {
continue;
}
if name.ends_with(suffix) {
return Ok(STORAGE_DBS[i].dbtype());
}
}
Err(KRR_CONFIG_ERROR)?
}

pub fn new_storage(
name: &str,
conf: &Option<String>,
Expand Down

0 comments on commit c63c9a0

Please sign in to comment.