Skip to content

Commit 407e466

Browse files
fix(dflash): suppress compiler warnings — remove unused var, var→let
- DFlashIntermediateDumper.swift: remove unused `totalElements` local - DFlashRuntime.swift: `var targetCache` → `let targetCache` (never reassigned)
1 parent b11e61e commit 407e466

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Sources/DFlash/DFlashIntermediateDumper.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public enum DFlashDumper {
4242
eval(floatArr)
4343

4444
let shape = (0..<floatArr.ndim).map { floatArr.dim($0) }
45-
let totalElements = shape.reduce(1, *)
4645

4746
// Build spec-compliant .npy header: shape must be a Python tuple,
4847
// spaces pad before the final newline byte.

Sources/DFlash/DFlashRuntime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public enum DFlashRuntime {
329329

330330
let draftBackend = DFlashDraftBackend()
331331

332-
var targetCache = makeTargetCache(targetModel: targetModel)
332+
let targetCache = makeTargetCache(targetModel: targetModel)
333333

334334
let draftCache = draftBackend.makeCache(
335335
draftModel: draftModel,

0 commit comments

Comments
 (0)