REC-113: subtract dead font asset, dead helpers, write-only pulse fields

Verified against origin/main (7ccd228) in an isolated worktree; no
collision with codex/cultmath-monorepo or codex/yggdrasil-aggregate-daemon
(both diff empty against origin/main for the touched paths).

- src/Gjallar/assets/fonts/Unifont-APL8x16.psf.gz: superseded Unifont
  pipeline residue (Shinonome replaced it in b4734dd). Re-verified:
  `git grep -i "unifont" origin/main -- .` returns zero matches anywhere
  in the tree (exit 1). The csproj's `Content Include="assets\fonts\**\*"`
  is a copy-to-output glob, not a runtime loader; the actual runtime
  loader (`FontAtlas.PackagedFamily`, Program.cs:3295-3300) hardcodes
  exactly the three Shinonome filenames and never globs the fonts
  directory or matches on a "Unifont" substring/pattern. No config,
  state, or deploy file lists fonts by name/pattern either
  (`git grep -n -i "psf\.gz|assets/fonts|fonts/\*" origin/main -- .`).
  Safe to delete.

- FrameDocument.CopyFrom (Program.cs:1670): `rg -n "CopyFrom\("
  src/Gjallar` found only the definition. Deleted.

- RectI.CenterX, RectI.CenterY, RectI.Intersects (Program.cs:2376-2381):
  `rg -n "CenterX|CenterY|Intersects\(" src/Gjallar` found only the
  definitions (RectI.Contains, not in scope, is used elsewhere and is
  kept). Deleted.

- GjallarVersePulse.ReceiveAttemptStatus and LastSuccessfulReceiveAt
  (VerseState.cs:294,298): confirmed write-only. `grep -n "\.ReceiveAttemptStatus\b"`
  and `grep -n "\.LastSuccessfulReceiveAt\b"` across Program.cs and
  VerseState.cs match only the field declarations and their assignment
  at the old Program.cs:1324,1328 (inside BuildPulse's `new
  GjallarVersePulse { ... }` initializer). `BuildFrameStatus`
  (VerseState.cs:198) never reads `pulse.ReceiveAttemptStatus` or
  `pulse.LastSuccessfulReceiveAt`. Removed both fields and their two
  write sites. Left the unrelated `lastReceiveAttemptStatus` local
  field/variable alone (Program.cs:127 etc.) — it feeds the JSON
  status export and telemetry log line and is read in several places;
  it only shares a similar name with the deleted typed pulse property.

Left tools/generate_psf_from_shinonome.py untouched (separate,
lower-confidence census item, out of this assignment's scope).

Verification: `dotnet build src/Gjallar/Gjallar.csproj
-p:CultLibRoot=F:/Projects/CultLib` succeeds with 0 errors/warnings
(Eve sibling-path project reference resolved via a local junction for
this out-of-tree worktree; not part of the commit).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-13 14:03:13 +02:00
commit 499f215112
3 changed files with 0 additions and 13 deletions

View file

@ -1321,11 +1321,9 @@ internal sealed class GjallarRenderer : IDisposable
Timings = timings,
ObservedAt = started,
ReceiveStatus = EffectiveReceiveStatus(started),
ReceiveAttemptStatus = lastReceiveAttemptStatus,
ReceiveError = lastReceiveError,
ProviderFetchError = lastProviderFetchError,
ProviderFetchUri = lastProviderFetchUri,
LastSuccessfulReceiveAt = lastSuccessfulCatalogReceiveObservedAt,
ConsecutiveReceiveFailures = consecutiveCatalogReceiveFailures,
CatalogProviders = latestCatalogProviders,
ComposedProviders = latestComposedProviders,
@ -1667,8 +1665,6 @@ internal sealed class FrameDocument
}
}
public void CopyFrom(byte[] pixels) => Buffer.BlockCopy(pixels, 0, Pixels, 0, Math.Min(pixels.Length, Pixels.Length));
public void DrawPanel(PackedPanel panel, int frameIndex, int depth = 0)
{
DrawPanel(panel, frameIndex, string.IsNullOrWhiteSpace(panel.Key) ? panel.Node.StableKey() : panel.Key, depth);
@ -2373,14 +2369,7 @@ internal static class AabbPacker
internal sealed record PackedPanel(EveNode Node, RectI Rect, float Weight, string Key, bool Minimized);
internal readonly record struct RectI(int X, int Y, int Width, int Height)
{
public float CenterX => X + Width * 0.5f;
public float CenterY => Y + Height * 0.5f;
public bool Contains(int x, int y) => x >= X && x < X + Width && y >= Y && y < Y + Height;
public bool Intersects(RectI other) =>
X < other.X + other.Width &&
X + Width > other.X &&
Y < other.Y + other.Height &&
Y + Height > other.Y;
}
internal sealed class EveNode

View file

@ -291,11 +291,9 @@ internal sealed class GjallarVersePulse
public FrameTimings Timings { get; set; }
public DateTimeOffset ObservedAt { get; set; }
public string ReceiveStatus { get; set; } = "starting";
public string ReceiveAttemptStatus { get; set; } = "starting";
public string ReceiveError { get; set; } = "";
public string ProviderFetchError { get; set; } = "";
public string ProviderFetchUri { get; set; } = "";
public string LastSuccessfulReceiveAt { get; set; } = "";
public int ConsecutiveReceiveFailures { get; set; }
public int CatalogProviders { get; set; }
public int ComposedProviders { get; set; }