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 aeb60c0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/babel-parser/src/parser/util.js
Expand Up @@ -19,7 +19,6 @@ import ProductionParameterHandler, {
PARAM,
} from "../util/production-parameter";
import { Errors, ParseError } from "../parse-error";
import type { PluginConfig } from "./base";
/*::
import type ScopeHandler from "../util/scope";
*/
Expand Down Expand Up @@ -150,16 +149,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 aeb60c0

Please sign in to comment.