Skip to content

Commit

Permalink
Remove unused fuelup toolchain list-revisions flag (#633)
Browse files Browse the repository at this point in the history
remove unused list_revisions
  • Loading branch information
JoshuaBatty authored Jun 18, 2024
1 parent 9d8ae92 commit 287d380
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 51 deletions.
7 changes: 0 additions & 7 deletions src/commands/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use anyhow::{bail, Result};
use clap::Parser;

use crate::ops::fuelup_toolchain::install::install;
use crate::ops::fuelup_toolchain::list_revisions::list_revisions;
use crate::ops::fuelup_toolchain::new::new;
use crate::ops::fuelup_toolchain::uninstall::uninstall;
use crate::target_triple::TargetTriple;
Expand All @@ -16,8 +15,6 @@ pub enum ToolchainCommand {
New(NewCommand),
/// Uninstall a toolchain
Uninstall(UninstallCommand),
/// Fetch the list of published `latest` toolchains, starting from the most recent
ListRevisions(ListRevisionsCommand),
}

#[derive(Debug, Parser)]
Expand All @@ -39,9 +36,6 @@ pub struct UninstallCommand {
pub name: String,
}

#[derive(Debug, Parser)]
pub struct ListRevisionsCommand {}

fn name_allowed(s: &str) -> Result<String> {
let name = match s.split_once('-') {
Some((prefix, target_triple)) => {
Expand Down Expand Up @@ -69,7 +63,6 @@ pub fn exec(command: ToolchainCommand) -> Result<()> {
ToolchainCommand::Install(command) => install(command)?,
ToolchainCommand::New(command) => new(command)?,
ToolchainCommand::Uninstall(command) => uninstall(command)?,
ToolchainCommand::ListRevisions(command) => list_revisions(command)?,
};

Ok(())
Expand Down
43 changes: 0 additions & 43 deletions src/ops/fuelup_toolchain/list_revisions.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/ops/fuelup_toolchain/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod install;
pub mod list_revisions;
pub mod new;
pub mod uninstall;

0 comments on commit 287d380

Please sign in to comment.