Reduce low-risk unused-symbol noise in core components (#316)
This first cleanup pass removes clearly unused imports and dead locals from a small set of components, and reconnects a few existing Props aliases to their component signatures so they stop surfacing as avoidable noise. The scope stays intentionally narrow to make the follow-up cleanup series easier to review and lower risk. Constraint: Follow issue #314 with a components-only, low-risk first pass Rejected: Broader sweep across commands/hooks/utils in the same PR | too much review surface for an initial cleanup pass Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep subsequent unused-code cleanups narrowly batched; treat signature/compatibility placeholders separately from straightforward import/alias cleanup Tested: bun run build; bun run smoke; targeted noUnused grep for touched files via bun x tsc --noEmit --noUnusedLocals --noUnusedParameters --pretty false Not-tested: full repo typecheck (baseline repo noise remains outside this narrow pass) Co-authored-by: anandh8x <test@example.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { c as _c } from "react-compiler-runtime";
|
||||
import React from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
import { FpsMetricsProvider } from '../context/fpsMetrics.js';
|
||||
import { StatsProvider, type StatsStore } from '../context/stats.js';
|
||||
import { type AppState, AppStateProvider } from '../state/AppState.js';
|
||||
@@ -9,14 +9,14 @@ type Props = {
|
||||
getFpsMetrics: () => FpsMetrics | undefined;
|
||||
stats?: StatsStore;
|
||||
initialState: AppState;
|
||||
children: React.ReactNode;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
/**
|
||||
* Top-level wrapper for interactive sessions.
|
||||
* Provides FPS metrics, stats context, and app state to the component tree.
|
||||
*/
|
||||
export function App(t0) {
|
||||
export function App(t0: Props) {
|
||||
const $ = _c(9);
|
||||
const {
|
||||
getFpsMetrics,
|
||||
|
||||
Reference in New Issue
Block a user