diff --git a/src/authorship/attribution_tracker.rs b/src/authorship/attribution_tracker.rs index 27f4ea9b9d..beb050134e 100644 --- a/src/authorship/attribution_tracker.rs +++ b/src/authorship/attribution_tracker.rs @@ -285,7 +285,6 @@ impl AttributionTracker { } /// Create a new attribution tracker with custom configuration - #[allow(dead_code)] pub fn with_config(config: AttributionConfig) -> Self { AttributionTracker { config } } diff --git a/src/ci/ci_context.rs b/src/ci/ci_context.rs index de6ee984cd..c346ac05b3 100644 --- a/src/ci/ci_context.rs +++ b/src/ci/ci_context.rs @@ -18,7 +18,6 @@ pub enum CiEvent { head_ref: String, head_sha: String, base_ref: String, - #[allow(dead_code)] base_sha: String, }, } @@ -60,7 +59,6 @@ pub struct CiContext { impl CiContext { /// Create a CiContext with an existing repository (no automatic cleanup) - #[allow(dead_code)] pub fn with_repository(repo: Repository, event: CiEvent) -> Self { CiContext { repo, diff --git a/src/commands/install_hooks.rs b/src/commands/install_hooks.rs index 20fae771d0..1cde1bf294 100644 --- a/src/commands/install_hooks.rs +++ b/src/commands/install_hooks.rs @@ -81,7 +81,6 @@ impl InstallResult { } } - #[allow(dead_code)] pub fn with_warning(mut self, warning: impl Into) -> Self { self.warnings.push(warning.into()); self diff --git a/src/git/refs.rs b/src/git/refs.rs index 775f55376a..439fbeb20b 100644 --- a/src/git/refs.rs +++ b/src/git/refs.rs @@ -245,7 +245,6 @@ pub fn notes_add_batch(repo: &Repository, entries: &[(String, String)]) -> Resul /// Batch-attach existing note blobs to commits without rewriting blob contents. /// /// Each entry is (commit_sha, existing_note_blob_oid). -#[allow(dead_code)] pub fn notes_add_blob_batch( repo: &Repository, entries: &[(String, String)], @@ -470,7 +469,6 @@ pub fn get_authorship(repo: &Repository, commit_sha: &str) -> Option Result { // Create SHA256 hash of the content let mut hasher = Sha256::new(); @@ -558,7 +557,6 @@ impl PersistedWorkingLog { Ok(touched_files) } - #[allow(dead_code)] pub fn all_ai_touched_files(&self) -> Result, GitAiError> { let checkpoints = self.read_all_checkpoints()?; let mut touched_files = HashSet::new(); diff --git a/src/git/repository.rs b/src/git/repository.rs index 964efad162..4174b41ae5 100644 --- a/src/git/repository.rs +++ b/src/git/repository.rs @@ -709,7 +709,6 @@ impl<'a> Tree<'a> { self.oid.clone() } - #[allow(dead_code)] #[allow(clippy::should_implement_trait)] pub fn clone(&self) -> Tree<'a> { Tree { @@ -791,7 +790,6 @@ pub struct Blob<'a> { } impl<'a> Blob<'a> { - #[allow(dead_code)] pub fn id(&self) -> String { self.oid.clone() } @@ -1393,7 +1391,6 @@ impl Repository { } // Write an in-memory buffer to the ODB as a blob. - #[allow(dead_code)] pub fn remote_head(&self, remote_name: &str) -> Result { let mut args = self.global_args_for_exec(); args.push("symbolic-ref".to_string()); @@ -1446,7 +1443,6 @@ impl Repository { Ok(remotes.first().map(|s| s.to_string())) } - #[allow(dead_code)] pub fn push_authorship(&self, remote_name: &str) -> Result<(), GitAiError> { push_authorship_notes(self, remote_name) } @@ -1568,7 +1564,6 @@ impl Repository { /// Get the content of a file at a specific commit /// Uses `git show :` for efficient single-call retrieval - #[allow(dead_code)] pub fn get_file_content( &self, file_path: &str, @@ -2302,7 +2297,6 @@ fn repository_object_hash_kind_for_path_no_git_exec( } } -#[allow(dead_code)] pub fn from_bare_repository(git_dir: &Path) -> Result { let workdir = git_dir .parent() diff --git a/src/mdm/hook_installer.rs b/src/mdm/hook_installer.rs index 8f9600f868..3371266e70 100644 --- a/src/mdm/hook_installer.rs +++ b/src/mdm/hook_installer.rs @@ -15,7 +15,6 @@ pub struct HookCheckResult { /// Whether hooks are installed pub hooks_installed: bool, /// Whether hooks are up to date - #[allow(dead_code)] pub hooks_up_to_date: bool, } diff --git a/src/observability/mod.rs b/src/observability/mod.rs index fbf9aab5f3..9ce63fdb25 100644 --- a/src/observability/mod.rs +++ b/src/observability/mod.rs @@ -48,7 +48,6 @@ pub fn log_performance( } /// Log a message to Sentry (info, warning, etc.) (via daemon telemetry worker) -#[allow(dead_code)] pub fn log_message(message: &str, level: &str, context: Option) { let envelope = crate::daemon::TelemetryEnvelope::Message { timestamp: chrono::Utc::now().to_rfc3339(),