Skip to content

Commit fa916a6

Browse files
author
Stephen Shaw
committed
refactor: remove unused imports and variables
- Remove unused assertThrows import from tests/utils_test.ts - Remove unused EQBand and ProductSubtype imports from tests/import_autoeq_test.ts - Remove unused productDirName variable from tools/autoeq/import.ts Addresses Copilot PR review suggestions from PR#62
1 parent 2e2ea41 commit fa916a6

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

tests/import_autoeq_test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
} from "https://deno.land/std@0.203.0/assert/mod.ts";
1212

1313
// Import from shared modules - no more code duplication!
14-
import { EQBand, ProductSubtype } from "../tools/types.ts";
1514
import { parseParametricEQ, mapTypeToSubtype } from "../tools/autoeq/parse_eq.ts";
1615
import { generateSlug } from "../tools/utils.ts";
1716

tests/utils_test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import {
88
assertEquals,
9-
assertThrows,
109
} from "https://deno.land/std@0.203.0/assert/mod.ts";
1110

1211
import {

tools/autoeq/import.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,18 @@ export async function importAutoEQ(
113113

114114
const measurer = relativePath[0];
115115
let type: string;
116-
let productDirName: string;
117116

118117
// Determine if the second segment is a type or part of the product directory
119118
const possibleType = relativePath[1].toLowerCase();
120119
const typeOptions = ["in-ear", "over-ear", "on-ear", "earbud", "earbuds"];
121120

122121
if (typeOptions.includes(possibleType)) {
123122
type = possibleType;
124-
productDirName = relativePath[2];
125123
} else {
126124
// Check for equipment folder like "GRAS 43AG-7 over-ear"
127125
const typeMatch = relativePath[1].match(/(in-ear|over-ear|on-ear|earbud|earbuds)/i);
128126
if (typeMatch && relativePath.length >= 4) {
129127
type = typeMatch[1].toLowerCase();
130-
productDirName = relativePath[2];
131128
log(` Extracted type "${type}" from equipment folder "${relativePath[1]}".`);
132129
} else {
133130
log(` Unable to determine type from path: "${entry.path}"`);

0 commit comments

Comments
 (0)