ksud: remove unused command

This commit is contained in:
weishu
2023-07-01 15:31:53 +08:00
parent b85ece440b
commit 90407986be
2 changed files with 0 additions and 8 deletions

View File

@@ -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(),

View File

@@ -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)?;