From fc83c43997708822f77127aef7ca2a19ded774e5 Mon Sep 17 00:00:00 2001 From: innocentzero Date: Tue, 26 Mar 2024 23:39:09 +0530 Subject: [PATCH] refact(packaging): remove unused function Signed-off-by: innocentzero --- crates/pacdef_core/src/grouping/package.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/pacdef_core/src/grouping/package.rs b/crates/pacdef_core/src/grouping/package.rs index d5bcea0..ed12a76 100644 --- a/crates/pacdef_core/src/grouping/package.rs +++ b/crates/pacdef_core/src/grouping/package.rs @@ -48,12 +48,6 @@ impl Package { } } - /// Returns the repo name as a reference. - /// Panics if repo name is `None` with a custom error message. - pub(crate) fn repo(&self, msg: &str) -> &str { - self.repo.as_ref().expect(msg) - } - /// Try to parse a string (from a line in a group file) and return a package. /// From the string, any possible comment is removed and whitespace is trimmed. /// Returns `None` if there is nothing left after trimming.