Skip to content

Commit

Permalink
rm stray function
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Oct 29, 2024
1 parent 360d8a8 commit 3b157e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/Import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function buildImports(spec: Spec, importNode: EmuImportElement, roo
const importedImports = [
...(importedNode as HTMLElement).querySelectorAll('emu-import'),
// we have to do this because querySelectorAll can't return its `this`
...((importedNode as HTMLElement).tagName === 'EMU-IMPORT' ? [importedNode] : [])
...((importedNode as HTMLElement).tagName === 'EMU-IMPORT' ? [importedNode] : []),
];
for (const childImport of importedImports) {
await buildImports(spec, childImport as EmuImportElement, relativeRoot);
Expand Down
4 changes: 0 additions & 4 deletions src/Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ function wrapWarn(source: string, spec: Spec, warn: (err: EcmarkupError) => void
};
}

function isEmuImportElement(node: Node): node is EmuImportElement {
return node.nodeType === 1 && node.nodeName === 'EMU-IMPORT';
}

export type WorklistItem = { aoid: string | null; effects: string[] };
export function maybeAddClauseToEffectWorklist(
effectName: string,
Expand Down

0 comments on commit 3b157e4

Please sign in to comment.