Skip to content

Commit

Permalink
Remove no longer used method.
Browse files Browse the repository at this point in the history
Reviewed by @tolmasky.
  • Loading branch information
tolmasky committed Mar 2, 2022
1 parent bcf10c9 commit a32b757
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/babel-parser/src/parser/util.js
Expand Up @@ -150,16 +150,6 @@ export default class UtilParser extends Tokenizer {
this.eat(type) || this.unexpected(loc, type);
}

getPluginNamesFromConfigs(pluginConfigs: Array<PluginConfig>): Array<string> {
return pluginConfigs.map(c => {
if (typeof c === "string") {
return c;
} else {
return c[0];
}
});
}

// tryParse will clone parser state.
// It is expensive and should be used with cautions
tryParse<T: Node | $ReadOnlyArray<Node>>(
Expand Down

0 comments on commit a32b757

Please sign in to comment.