Skip to content

Commit

Permalink
chore: Complete removal of grammar{s}FromScriptElement{s}
Browse files Browse the repository at this point in the history
  • Loading branch information
pdubroy committed Nov 5, 2022
1 parent 1b22122 commit 13c8991
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
7 changes: 0 additions & 7 deletions packages/ohm-js/scripts/data/index.d.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ declare namespace ohm {
*/
function grammar(source: string, namespace?: Namespace): Grammar;

/**
* grammarFromScriptElement was removed in Ohm v16.0. See
* https://ohmjs.org/d/gfs for more info.
* @deprecated
*/
function grammarFromScriptElement(node?: unknown, namespace?: Namespace): Grammar;

/**
* Create a new Namespace containing Grammar instances for all of the
* grammars defined in source.
Expand Down
12 changes: 0 additions & 12 deletions packages/ohm-js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ export function grammars(source, optNamespace) {
return ns;
}

export function grammarFromScriptElement(optNode) {
throw new Error(
'grammarFromScriptElement was removed in Ohm v16.0. See https://ohmjs.org/d/gfs for more info.',
);
}

export function grammarsFromScriptElements(optNodeOrNodeList) {
throw new Error(
'grammarsFromScriptElements was removed in Ohm v16.0. See https://ohmjs.org/d/gfs for more info.',
);
}

export * from './main-kernel.js';
export {ohmGrammar};
export {pexprs, util};
Expand Down
2 changes: 0 additions & 2 deletions packages/packaging-tests/checkExports.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import * as assert from 'uvu/assert';

const expectedExports = [
'grammar',
'grammarFromScriptElement',
'grammars',
'grammarsFromScriptElements',
'makeRecipe',
'ohmGrammar',
'pexprs',
Expand Down

0 comments on commit 13c8991

Please # to comment.