mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
Remove unused exports found by Dead Code and ignore its saved reports
AI Assisted
This commit is contained in:
1 parent
d1aab9d006
commit
1d064b18f3
8 files changed
+3
-12
No files matched your search
@@ -25,3 +25,4 @@ prototypes/
|
||||
plan2code-app/target/
|
||||
plan2code-app/src-tauri/gen/
|
||||
plan2code-app/ui/vendor/
|
||||
.plan2code-dead-code/reports/
|
||||
@@ -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
|
||||
|
||||
@@ -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`.
|
||||
|
||||
@@ -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;
|
||||
@@ -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);
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in new issue
Block a user