Skip to content

Commit 6bbc30c

Browse files
betegonclaude
andcommitted
refactor(platforms): remove unused normalizePlatform export
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac24726 commit 6bbc30c

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/lib/platforms.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ export function isValidPlatform(platform: string): boolean {
156156
return VALID_PLATFORM_SET.has(platform);
157157
}
158158

159-
/**
160-
* Normalize dots to hyphens in a platform string.
161-
* Returns the normalized string (no side effects).
162-
*/
163-
export function normalizePlatform(platform: string): string {
164-
return platform.replace(/\./g, "-");
165-
}
166-
167159
function addUnique(arr: string[], value: string): void {
168160
if (!arr.includes(value)) {
169161
arr.push(value);

test/lib/platforms.test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { describe, expect, test } from "bun:test";
22
import {
33
COMMON_PLATFORMS,
44
isValidPlatform,
5-
normalizePlatform,
65
suggestPlatform,
76
VALID_PLATFORM_SET,
87
VALID_PLATFORMS,
@@ -25,18 +24,6 @@ describe("isValidPlatform", () => {
2524
});
2625
});
2726

28-
describe("normalizePlatform", () => {
29-
test("converts dots to hyphens", () => {
30-
expect(normalizePlatform("javascript.nextjs")).toBe("javascript-nextjs");
31-
expect(normalizePlatform("python.django.rest")).toBe("python-django-rest");
32-
});
33-
34-
test("returns unchanged string when no dots", () => {
35-
expect(normalizePlatform("node")).toBe("node");
36-
expect(normalizePlatform("javascript-nextjs")).toBe("javascript-nextjs");
37-
});
38-
});
39-
4027
describe("suggestPlatform", () => {
4128
test("suggests suffix match: nextjs → javascript-nextjs", () => {
4229
const results = suggestPlatform("nextjs");

0 commit comments

Comments
 (0)