From d860ec15b3496f0e5870266a051e4de4629d7cdd Mon Sep 17 00:00:00 2001 From: Adrian Duke Date: Tue, 13 Jan 2026 16:47:17 +0000 Subject: [PATCH] cli: Remove dead `fn parse_remote` --- crates/radicle-cli/src/git.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/radicle-cli/src/git.rs b/crates/radicle-cli/src/git.rs index b91f95f9..7d688843 100644 --- a/crates/radicle-cli/src/git.rs +++ b/crates/radicle-cli/src/git.rs @@ -345,14 +345,6 @@ pub fn check_version() -> Result { Ok(git_version) } -/// Parse a remote refspec into a peer id and ref. -pub fn parse_remote(refspec: &str) -> Option<(NodeId, &str)> { - refspec - .strip_prefix("refs/remotes/") - .and_then(|s| s.split_once('/')) - .and_then(|(peer, r)| NodeId::from_str(peer).ok().map(|p| (p, r))) -} - pub fn add_tag( repo: &Repository, message: &str,