Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/authorship/attribution_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
2 changes: 0 additions & 2 deletions src/ci/ci_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub enum CiEvent {
head_ref: String,
head_sha: String,
base_ref: String,
#[allow(dead_code)]
base_sha: String,
},
}
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/commands/install_hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ impl InstallResult {
}
}

#[allow(dead_code)]
pub fn with_warning(mut self, warning: impl Into<String>) -> Self {
self.warnings.push(warning.into());
self
Expand Down
2 changes: 0 additions & 2 deletions src/git/refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
Expand Down Expand Up @@ -470,7 +469,6 @@ pub fn get_authorship(repo: &Repository, commit_sha: &str) -> Option<AuthorshipL
Some(authorship_log)
}

#[allow(dead_code)]
pub fn get_reference_as_working_log(
repo: &Repository,
commit_sha: &str,
Expand Down
2 changes: 0 additions & 2 deletions src/git/repo_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ impl PersistedWorkingLog {
Ok(fs::read_to_string(blob_path)?)
}

#[allow(dead_code)]
pub fn persist_file_version(&self, content: &str) -> Result<String, GitAiError> {
// Create SHA256 hash of the content
let mut hasher = Sha256::new();
Expand Down Expand Up @@ -558,7 +557,6 @@ impl PersistedWorkingLog {
Ok(touched_files)
}

#[allow(dead_code)]
pub fn all_ai_touched_files(&self) -> Result<HashSet<String>, GitAiError> {
let checkpoints = self.read_all_checkpoints()?;
let mut touched_files = HashSet::new();
Expand Down
6 changes: 0 additions & 6 deletions src/git/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -791,7 +790,6 @@ pub struct Blob<'a> {
}

impl<'a> Blob<'a> {
#[allow(dead_code)]
pub fn id(&self) -> String {
self.oid.clone()
}
Expand Down Expand Up @@ -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<String, GitAiError> {
let mut args = self.global_args_for_exec();
args.push("symbolic-ref".to_string());
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -1568,7 +1564,6 @@ impl Repository {

/// Get the content of a file at a specific commit
/// Uses `git show <commit>:<path>` for efficient single-call retrieval
#[allow(dead_code)]
pub fn get_file_content(
&self,
file_path: &str,
Expand Down Expand Up @@ -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<Repository, GitAiError> {
let workdir = git_dir
.parent()
Expand Down
1 change: 0 additions & 1 deletion src/mdm/hook_installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
1 change: 0 additions & 1 deletion src/observability/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<serde_json::Value>) {
let envelope = crate::daemon::TelemetryEnvelope::Message {
timestamp: chrono::Utc::now().to_rfc3339(),
Expand Down
Loading