chore: remove unused exports and redundant hook files (#18681)

This commit is contained in:
Sandy Tao
2026-02-09 15:01:23 -08:00
committed by GitHub
parent ef957a368d
commit 14219bb57d
5 changed files with 1 additions and 142 deletions
-19
View File
@@ -52,25 +52,6 @@ export function disableSimulationAfterFallback(): void {
fallbackOccurred = true;
}
/**
* Create a simulated 429 error response
*/
export function createSimulated429Error(): Error {
const error = new Error('Rate limit exceeded (simulated)') as Error & {
status: number;
};
error.status = 429;
return error;
}
/**
* Reset simulation state when switching auth methods
*/
export function resetSimulationState(): void {
fallbackOccurred = false;
resetRequestCounter();
}
/**
* Enable/disable 429 simulation programmatically (for tests)
*/