mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
feat: remove references to graphic switching
This commit is contained in:
@@ -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<SetAuraBuiltin>,
|
||||
}
|
||||
|
||||
#[derive(FromArgs, Debug, Default)]
|
||||
#[argh(
|
||||
subcommand,
|
||||
name = "graphics",
|
||||
description = "graphics command (deprecated)"
|
||||
)]
|
||||
pub struct GraphicsCommand {}
|
||||
|
||||
#[derive(FromArgs, Debug, Default)]
|
||||
#[argh(
|
||||
subcommand,
|
||||
|
||||
@@ -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<dyn std::error::Error>> {
|
||||
if cmd.screenpad_brightness.is_none()
|
||||
&& cmd.screenpad_gamma.is_none()
|
||||
|
||||
Reference in New Issue
Block a user