ksud: remove unused command
This commit is contained in:
@@ -18,9 +18,6 @@ struct Args {
|
||||
|
||||
#[derive(clap::Subcommand, Debug)]
|
||||
enum Commands {
|
||||
/// Start KernelSU userspace daemon
|
||||
Daemon,
|
||||
|
||||
/// Manage KernelSU modules
|
||||
Module {
|
||||
#[command(subcommand)]
|
||||
@@ -151,7 +148,6 @@ pub fn run() -> Result<()> {
|
||||
log::info!("command: {:?}", cli.command);
|
||||
|
||||
let result = match cli.command {
|
||||
Commands::Daemon => event::daemon(),
|
||||
Commands::PostFsData => event::on_post_data_fs(),
|
||||
Commands::BootCompleted => event::on_boot_completed(),
|
||||
|
||||
|
||||
@@ -219,10 +219,6 @@ pub fn on_boot_completed() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn daemon() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn install() -> Result<()> {
|
||||
ensure_dir_exists(defs::ADB_DIR)?;
|
||||
std::fs::copy("/proc/self/exe", defs::DAEMON_PATH)?;
|
||||
|
||||
Reference in New Issue
Block a user