refactor: remove dead code and #[allow(dead_code)] annotations

Removed unused sync podman_command/docker_command methods.
Removed dead_code annotations from User and AuthManager (now actively used).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-15 04:34:14 +00:00
co-authored by Claude Opus 4.6
parent 9565956f79
commit 0b3bf5b635
4 changed files with 1 additions and 25 deletions
-3
View File
@@ -67,7 +67,6 @@ struct OnboardingState {
complete: bool,
}
#[allow(dead_code)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct User {
pub password_hash: String,
@@ -80,12 +79,10 @@ pub struct User {
pub role: UserRole,
}
#[allow(dead_code)]
pub struct AuthManager {
data_dir: PathBuf,
}
#[allow(dead_code)]
impl AuthManager {
pub fn new(data_dir: PathBuf) -> Self {
Self { data_dir }
-12
View File
@@ -66,18 +66,6 @@ impl PodmanClient {
}
}
#[allow(dead_code)]
fn podman_command(&self) -> Command {
let mut cmd = Command::new("podman");
if self.rootless {
// Use actual HOME environment variable instead of hardcoded /home
if let Ok(home) = std::env::var("HOME") {
cmd.env("HOME", home);
}
}
cmd
}
fn podman_async(&self) -> TokioCommand {
// Always use sudo podman to access system-wide containers
let mut cmd = TokioCommand::new("sudo");
-9
View File
@@ -99,15 +99,6 @@ impl DockerRuntime {
cmd
}
#[allow(dead_code)]
fn docker_command(&self) -> Command {
let mut cmd = Command::new("docker");
// Use actual HOME environment variable instead of hardcoded /home
if let Ok(home) = std::env::var("HOME") {
cmd.env("HOME", home);
}
cmd
}
}
#[async_trait]