Remove unneeded function

This commit is contained in:
bitfl0wer 2023-08-25 01:35:49 +02:00
parent 9cb8b29487
commit 87fcf2edf1
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
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)] #[cfg(test)]
mod lib { mod lib {
use super::*; use super::*;