diff --git a/.gitignore b/.gitignore index db0d233..50e037e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ prototypes/ plan2code-app/target/ plan2code-app/src-tauri/gen/ plan2code-app/ui/vendor/ +.plan2code-dead-code/reports/ diff --git a/src/web-console/public/activities/bounce-rivals.js b/src/web-console/public/activities/bounce-rivals.js index 3f3bd01..ec83978 100644 --- a/src/web-console/public/activities/bounce-rivals.js +++ b/src/web-console/public/activities/bounce-rivals.js @@ -34,7 +34,6 @@ export const RIVALS = Object.freeze({ export const RIVAL_KINDS = Object.freeze(Object.keys(RIVALS)); // A car this heavy gives no ground to a ram, and its back is a wall. export const HEAVY = 4; -export const HAUL_MASS = RIVALS.hauler.mass; // Rivals spawn SPAWN_AHEAD to SPAWN_AHEAD + 40 units ahead of you (just over // the board's top), one that comes from behind SPAWN_BEHIND under its diff --git a/src/web-console/public/activities/bounce-road.js b/src/web-console/public/activities/bounce-road.js index f37838e..d6eabca 100644 --- a/src/web-console/public/activities/bounce-road.js +++ b/src/web-console/public/activities/bounce-road.js @@ -542,8 +542,6 @@ export function ensureRoad(road, d) { // The row index for `d`, kept on the road. export const rowIn = (road, d) => clamp(rowOf(d), 0, road.rows - 1); -export const hasBed = (road, i) => road.ML[i] < road.MR[i]; - /* ---------------------------------------------------- the timed parts */ // A swaying bridge's shift across at `t`. diff --git a/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride-voices.js b/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride-voices.js index 5d6af9e..1818432 100644 --- a/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride-voices.js +++ b/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride-voices.js @@ -6,7 +6,7 @@ // (ghoul-sfx-ride.js) at the event's `level` and `pitch`. A heart lost is the // game's own `lose` event with one of the ride's causes (ghoul-ride.js CAUSES). -import { CAUSES, EVENTS, SOUNDS } from "./ghoul-ride.js"; +import { SOUNDS } from "./ghoul-ride.js"; const freeze = (o) => Object.freeze(o); const cap = (s) => s[0].toUpperCase() + s.slice(1); @@ -71,5 +71,3 @@ export function react(e, k) { k.tone(name, Math.min(1, 0.55 * (e.level ?? 1)), (e.pitch ?? 1) * (0.97 + Math.random() * 0.06)); return true; } -export const RIDE_EVENTS = EVENTS; -export const RIDE_CAUSES = CAUSES; diff --git a/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride.js b/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride.js index 1a1b14f..336e726 100644 --- a/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride.js +++ b/src/web-console/public/activities/ghoul-rush/rides/dark-ride/ghoul-ride.js @@ -42,7 +42,6 @@ export const SPD = 2.1; export const FIRE_GAP = 0.16; export const RIDE_FLOOR = 5; export const RIDE_EXTRA = 4; -export const DEAD_BAND = freeze({ on: DUCK_ON, off: DUCK_OFF }); /* ------------------------------------------------------------- sounds */ @@ -1054,5 +1053,4 @@ export const RIDE = freeze({ // What the art and the tests read of the rules. export { K, bossActive, miniHp, mirRect, groundSpeedWant, update as stepRide }; -export const popRect = (e) => K.pop.rect(e); export const handTip = (e) => K.hand.tip(e); diff --git a/src/web-console/public/activities/ghoul-rush/stages/mine/ghoul-mine.js b/src/web-console/public/activities/ghoul-rush/stages/mine/ghoul-mine.js index 18784ec..7bb8dfb 100644 --- a/src/web-console/public/activities/ghoul-rush/stages/mine/ghoul-mine.js +++ b/src/web-console/public/activities/ghoul-rush/stages/mine/ghoul-mine.js @@ -139,7 +139,6 @@ export const CANARY_REST_MS = 4500; // A dead miner: see the header. export const MINER_NEAR = 44; export const MINER_DIG_MS = 650; -export const MINER_V = 8; export const PICK_NEAR = 5; export const PICK_WIND_MS = 400; export const PICK_REACH = 5; diff --git a/src/web-console/public/activities/golf-decor.js b/src/web-console/public/activities/golf-decor.js index d8ca8bc..27d3b86 100644 --- a/src/web-console/public/activities/golf-decor.js +++ b/src/web-console/public/activities/golf-decor.js @@ -1041,7 +1041,6 @@ const DECOR = { // Every kind of scenery a hole on `theme` may use: the built-in ones and its // look's own. export const decorKinds = (theme) => [...Object.keys(DECOR), ...Object.keys((LOOKS[theme] || {}).decor || {})]; -export const DECOR_KINDS = Object.freeze(Object.keys(DECOR)); const decorKind = (theme, kind) => ((LOOKS[theme] || {}).decor || {})[kind] || DECOR[kind]; diff --git a/src/web-console/public/subagents.js b/src/web-console/public/subagents.js index fe17f7f..0847141 100644 --- a/src/web-console/public/subagents.js +++ b/src/web-console/public/subagents.js @@ -34,8 +34,7 @@ export const HELPER_STATES = Object.freeze(["running", "done", "failed"]); // The person's Helper strength profile, applied on top of helper-strength.md's table. export const STRENGTHS = Object.freeze(["balanced", "thrifty", "best", "session"]); export const DEFAULT_STRENGTH = "balanced"; -// What the dialog's strength radios say, and the line under them for the picked one. -export const STRENGTH_LABELS = Object.freeze({ balanced: "Balanced", thrifty: "Thrifty", best: "Best", session: "Match my session" }); +// The line under the dialog's strength radios for the picked one. export const STRENGTH_HELP = Object.freeze({ balanced: "Each helper gets the strength its job needs: light for lookups, stronger for reviews and design work.", thrifty: "One step lighter everywhere to save cost; reviews stay at standard or above.",