diff --git a/asusctl/src/cli_opts.rs b/asusctl/src/cli_opts.rs index 692ab8e3..3c02f132 100644 --- a/asusctl/src/cli_opts.rs +++ b/asusctl/src/cli_opts.rs @@ -44,7 +44,6 @@ pub enum CliCommand { AuraPower(LedPowerCommand2), Profile(ProfileCommand), FanCurve(FanCurveCommand), - Graphics(GraphicsCommand), Anime(AnimeCommand), Slash(SlashCommand), Scsi(ScsiCommand), @@ -95,14 +94,6 @@ pub struct LedModeCommand { pub command: Option, } -#[derive(FromArgs, Debug, Default)] -#[argh( - subcommand, - name = "graphics", - description = "graphics command (deprecated)" -)] -pub struct GraphicsCommand {} - #[derive(FromArgs, Debug, Default)] #[argh( subcommand, diff --git a/asusctl/src/main.rs b/asusctl/src/main.rs index 80e0b330..cc996014 100644 --- a/asusctl/src/main.rs +++ b/asusctl/src/main.rs @@ -203,7 +203,6 @@ fn do_parsed( Some(CliCommand::FanCurve(cmd)) => { handle_fan_curve(&conn, cmd)?; } - Some(CliCommand::Graphics(_)) => do_gfx(), Some(CliCommand::Anime(cmd)) => handle_anime(cmd)?, Some(CliCommand::Slash(cmd)) => handle_slash(cmd)?, Some(CliCommand::Scsi(cmd)) => handle_scsi(cmd)?, @@ -294,14 +293,6 @@ fn do_parsed( Ok(()) } -fn do_gfx() { - println!( - "Please use supergfxctl for graphics switching. supergfxctl is the result of making \ - asusctl graphics switching generic so all laptops can use it" - ); - println!("This command will be removed in future"); -} - fn handle_backlight(cmd: &BacklightCommand) -> Result<(), Box> { if cmd.screenpad_brightness.is_none() && cmd.screenpad_gamma.is_none()