Skip to content

Commit 87e2ab7

Browse files
committed
refactor(tui): drop unused me_profile_request_url helper
Co-authored-by: Mathis <echobt@users.noreply.github.com>
1 parent 6749a85 commit 87e2ab7

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/cortex-tui/src/runner/app_runner/runner.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,6 @@ pub(crate) fn spawn_me_profile_fetch(
960960
})
961961
}
962962

963-
/// Identity URL used by the TUI runner — same resolver as device login and turns.
964-
pub(crate) fn me_profile_request_url(api_url: &str) -> String {
965-
cortex_engine::client::me_url(api_url)
966-
}
967-
968963
// ============================================================================
969964
// Tests
970965
// ============================================================================

src/cortex-tui/src/runner/app_runner/ux_runner_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ fn test_app_runner_cortex_session_id() {
9292

9393
#[test]
9494
fn me_profile_request_url_uses_configured_origin_never_production_or_auth_me() {
95-
let url = super::me_profile_request_url("http://127.0.0.1:18081/");
95+
let url = cortex_engine::client::me_url("http://127.0.0.1:18081/");
9696
assert_eq!(url, "http://127.0.0.1:18081/v1/me");
9797
assert!(!url.contains("api.cortex.foundation"));
9898
assert!(!url.contains("/auth/me"));
9999
assert_eq!(
100-
super::me_profile_request_url("https://api.cortex.foundation"),
100+
cortex_engine::client::me_url("https://api.cortex.foundation"),
101101
"https://api.cortex.foundation/v1/me"
102102
);
103103
}

0 commit comments

Comments
 (0)