diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 32f9ef7..37cf9b3 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -875,9 +875,6 @@ pub async fn run_repl_command( ReplInstallDispatch::Unified(value) => { config::install_or_update_from_repl_args(value)?; } - ReplInstallDispatch::RemovedRemote => println!( - "'.install remote ' was removed; use '.install ' directly." - ), ReplInstallDispatch::Usage => println!( "Usage: .install <{}> | .install \ [--git-host ] [--filter ] [--force]", @@ -1586,7 +1583,6 @@ fn unknown_command() -> Result<()> { enum ReplInstallDispatch<'a> { Builtins(AssetCategory), Unified(&'a str), - RemovedRemote, Usage, } @@ -1599,7 +1595,6 @@ fn parse_repl_install(args: Option<&str>) -> ReplInstallDispatch<'_> { match AssetCategory::parse(name) { Some(category) if rest.is_empty() => ReplInstallDispatch::Builtins(category), Some(_) => ReplInstallDispatch::Usage, - None if name == "remote" && !rest.is_empty() => ReplInstallDispatch::RemovedRemote, None => ReplInstallDispatch::Unified(trimmed), } } @@ -1870,18 +1865,6 @@ mod tests { ); } - #[test] - fn parse_repl_install_hints_on_removed_remote_form() { - assert_eq!( - parse_repl_install(Some("remote https://github.com/x/y")), - ReplInstallDispatch::RemovedRemote - ); - assert_eq!( - parse_repl_install(Some("remote")), - ReplInstallDispatch::Unified("remote") - ); - } - #[test] fn builtin_command_names_are_sorted_deduped_first_words_without_dots() { let names = builtin_command_names();