From fdaba53229060c793da6d38414a38622ab36f945 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Sun, 14 Jun 2026 16:19:28 +0000 Subject: [PATCH] refactor(cfg): remove dead useCount() from swift + rust harvests (#2195 U5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useCount() was declared on the local FactAccumulator in swift-harvest.ts and rust-harvest.ts but never called (a copy-paste artifact; ruby's copy IS used in an emit guard, so it stays). Pure deletion — the swift/rust visitor suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) --- gitnexus/src/core/ingestion/cfg/visitors/rust-harvest.ts | 4 ---- gitnexus/src/core/ingestion/cfg/visitors/swift-harvest.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/gitnexus/src/core/ingestion/cfg/visitors/rust-harvest.ts b/gitnexus/src/core/ingestion/cfg/visitors/rust-harvest.ts index 86db8ba32..0610859ea 100644 --- a/gitnexus/src/core/ingestion/cfg/visitors/rust-harvest.ts +++ b/gitnexus/src/core/ingestion/cfg/visitors/rust-harvest.ts @@ -133,10 +133,6 @@ class FactAccumulator { return this.defs.length + this.mayDefs.length; } - useCount(): number { - return this.uses.length; - } - finish(): StatementFacts { return { line: this.line, diff --git a/gitnexus/src/core/ingestion/cfg/visitors/swift-harvest.ts b/gitnexus/src/core/ingestion/cfg/visitors/swift-harvest.ts index 6e5fa9649..dce687404 100644 --- a/gitnexus/src/core/ingestion/cfg/visitors/swift-harvest.ts +++ b/gitnexus/src/core/ingestion/cfg/visitors/swift-harvest.ts @@ -128,10 +128,6 @@ class FactAccumulator { return this.defs.length + this.mayDefs.length; } - useCount(): number { - return this.uses.length; - } - finish(): StatementFacts { return { line: this.line,