Skip to content

Commit 2f6dbd6

Browse files
Merge pull request #392 from corbitsdev/cl-5679-dead-code-cleanup-isapproved-adjacent-orphaned-exports
Remove dead matchGlob, parsePresentViewFromArgs, and lookupModelReasoning
2 parents abc8176 + 290fa70 commit 2f6dbd6

6 files changed

Lines changed: 0 additions & 108 deletions

File tree

src/cost/pricing-fetcher.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,6 @@ export async function readPricingCache(cachePath = defaultPricingCachePath()): P
162162
}
163163
}
164164

165-
export function lookupModelReasoning(cache: PricingCache | null, modelId: string): boolean | undefined {
166-
return cache?.reasoning?.[modelId];
167-
}
168-
169165
export async function writePricingCache(cache: PricingCache, cachePath = defaultPricingCachePath()): Promise<void> {
170166
try {
171167
await mkdir(dirname(cachePath), { recursive: true });

src/pricing-fetcher.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
fetchPricing,
88
loadPricing,
99
lookupModelPricing,
10-
lookupModelReasoning,
1110
readPricingCache,
1211
writePricingCache,
1312
startPricingRefresh,
@@ -49,13 +48,6 @@ describe("parseModelsDevReasoning", () => {
4948
};
5049
expect(parseModelsDevReasoning(payload)).toEqual({ "gpt-5.1": true, "gpt-4o": false });
5150
});
52-
53-
test("lookupModelReasoning reads the cached flag, undefined when absent", () => {
54-
const cache: PricingCache = { timestamp: 0, models: {}, reasoning: { "gpt-5.1": true } };
55-
expect(lookupModelReasoning(cache, "gpt-5.1")).toBe(true);
56-
expect(lookupModelReasoning(cache, "unknown")).toBeUndefined();
57-
expect(lookupModelReasoning(null, "gpt-5.1")).toBeUndefined();
58-
});
5951
});
6052

6153
// ---------------------------------------------------------------------------

src/tui/tool-args.test.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/tui/tool-args.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/util/glob.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

tests/unit/glob-brace.test.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)