From 499f21511245f0ead0ce93e5fb6ed220b309dbd2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 13 Sep 2026 14:03:13 +0200 Subject: [PATCH] REC-113: subtract dead font asset, dead helpers, write-only pulse fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/Gjallar/Program.cs | 11 ----------- src/Gjallar/VerseState.cs | 2 -- src/Gjallar/assets/fonts/Unifont-APL8x16.psf.gz | Bin 3596 -> 0 bytes 3 files changed, 13 deletions(-) delete mode 100644 src/Gjallar/assets/fonts/Unifont-APL8x16.psf.gz diff --git a/src/Gjallar/Program.cs b/src/Gjallar/Program.cs index a8534f9..de026b4 100644 --- a/src/Gjallar/Program.cs +++ b/src/Gjallar/Program.cs @@ -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 diff --git a/src/Gjallar/VerseState.cs b/src/Gjallar/VerseState.cs index 4169823..e14a764 100644 --- a/src/Gjallar/VerseState.cs +++ b/src/Gjallar/VerseState.cs @@ -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; } diff --git a/src/Gjallar/assets/fonts/Unifont-APL8x16.psf.gz b/src/Gjallar/assets/fonts/Unifont-APL8x16.psf.gz deleted file mode 100644 index 686a7c4a3f6a0fd5b2414deaed01912fc598715b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3596 zcmbu-`#%$oqsQ@(TS%^RpV9}5P|1Bp?kTzDmfYo*OUY%}<~k)=ky~!jg|7+L|P32@oEwMrRMFYK5{VX|+7J;6?2Qmba86^=}%>bs26ab^YF~=b_p$ zs%S<+jhx1SV8%@KtRFf zBOG7*N8P%0D~20Yf7NrnUQX{()s(D(Vpq<%Mr&@11Bo|fw$GwE#QH++t1NO>`|{XC zOR<~8>y*1U^KysB?oOO_adOC4tE7BX)pJHOY|nt*Tfb$t*G6%lmRWcGosPz?R4j># zRA4I%+uhY}nM?|NarS?ga7A=csP*^qpw*p?zzfp@^rh!z4yC}|thGY^Kpgz7Xy;U}q?BhRDU z3apj8H0293iRH=_FJpJy&mo%bgmhLk8fAU7M%YijEV&Wbjk0*Hdd|u|Yq~6RPi1cm z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