refactor: remove dead code (#3337)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:41:26 +02:00
1 parent a19002652b
commit 93d1f8af46
1527 files changed
+21170 -73846

No files matched your search

@@ -38,9 +38,7 @@ import {
} from '@fluxer/voice_engine_v2/src/runtime/frameCoalescing';
import {
createVoiceEngineV2SystemClockPort,
createVoiceEngineV2SystemRandomPort,
type VoiceEngineV2ClockPort,
type VoiceEngineV2RandomPort,
} from '@fluxer/voice_engine_v2/src/runtime/platformPort';
export type {
@@ -79,7 +77,6 @@ export type VoiceEngineV2RuntimeClock = VoiceEngineV2ClockPort;
export interface VoiceEngineV2RuntimeOptions {
capabilities?: VoiceEngineV2Capabilities;
clock?: VoiceEngineV2ClockPort;
random?: VoiceEngineV2RandomPort;
eventLogCap?: number;
eventLogSpillSink: VoiceEngineV2EventLogSpillSink;
queuedCommandsCap?: number;
@@ -102,7 +99,6 @@ export class VoiceEngineV2Runtime {
private readonly diagnosticListeners = new Set<VoiceEngineV2RuntimeDiagnosticListener>();
private readonly unsubscribeImplementationEvents: () => void;
private readonly clock: VoiceEngineV2ClockPort;
private readonly random: VoiceEngineV2RandomPort;
private readonly eventLogRing: VoiceEngineV2EventLogRing;
private readonly eventLogSpillSink: VoiceEngineV2EventLogSpillSink;
private readonly queuedCommandsById = new Map<number, VoiceEngineV2Command>();
@@ -125,7 +121,6 @@ export class VoiceEngineV2Runtime {
options: VoiceEngineV2RuntimeOptions,
) {
this.clock = options.clock ?? createVoiceEngineV2SystemClockPort();
this.random = options.random ?? createVoiceEngineV2SystemRandomPort();
const cap = options.eventLogCap ?? VOICE_ENGINE_V2_EVENT_LOG_CAP;
assert.ok(Number.isInteger(cap), 'eventLogCap must be an integer');
assert.ok(cap >= 1, 'eventLogCap must be >= 1');
@@ -186,22 +181,6 @@ export class VoiceEngineV2Runtime {
return this.queuedCommandsById.size;
}
get platformRandom(): VoiceEngineV2RandomPort {
return this.random;
}
get platformClock(): VoiceEngineV2ClockPort {
return this.clock;
}
get queuedCommandsCapacity(): number {
return this.queuedCommandsCap;
}
get resourceQueuesCapacity(): number {
return this.resourceQueuesCap;
}
get queueFullDropTotal(): number {
return this.queueFullDropCount;
}