Remove unneeded function

This commit is contained in:
bitfl0wer 2023-08-25 01:35:49 +02:00
parent 2b69aba2ca
commit 0d93ad8578
1 changed files with 0 additions and 9 deletions

View File

@ -74,15 +74,6 @@ impl UrlBundle {
}
}
/// Unwraps an `Option<String>`. Returns an empty string if the String is `None`, or the String contents
/// if it is `Some`.
pub(crate) fn unwrap_empty_if_none(string: Option<String>) -> String {
match string {
Some(str) => str,
None => "".to_string(),
}
}
#[cfg(test)]
mod lib {
use super::*;