From 87fcf2edf191001ed1f2c1c556d20b2b4b8c6f47 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Fri, 25 Aug 2023 01:35:49 +0200 Subject: [PATCH] Remove unneeded function --- src/lib.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7a957dd..6563bed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,15 +74,6 @@ impl UrlBundle { } } -/// Unwraps an `Option`. 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 { - match string { - Some(str) => str, - None => "".to_string(), - } -} - #[cfg(test)] mod lib { use super::*;