Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Remove now-obsolete getRenderPropPaths() #63661

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions packages/scripts/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,6 @@ function getWebpackEntryPoints( buildType ) {
};
}

/**
* Returns the list of paths included in the `render` props by scanning the `block.json` files.
*
* @return {Array} The list of all the `render` prop paths included in `block.json` files.
*/
function getRenderPropPaths() {
return getPhpFilePaths( [ 'render' ] );
}

/**
* Returns the list of PHP file paths found in `block.json` files for the given props.
*
Expand Down Expand Up @@ -422,7 +413,6 @@ module.exports = {
getWordPressSrcDirectory,
getWebpackEntryPoints,
getPhpFilePaths,
getRenderPropPaths,
hasBabelConfig,
hasCssnanoConfig,
hasJestConfig,
Expand Down
2 changes: 0 additions & 2 deletions packages/scripts/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const {
getWordPressSrcDirectory,
getWebpackEntryPoints,
getPhpFilePaths,
getRenderPropPaths,
hasBabelConfig,
hasCssnanoConfig,
hasJestConfig,
Expand Down Expand Up @@ -45,7 +44,6 @@ module.exports = {
getWordPressSrcDirectory,
getWebpackEntryPoints,
getPhpFilePaths,
getRenderPropPaths,
getBlockJsonModuleFields,
getBlockJsonScriptFields,
hasArgInCLI,
Expand Down
Loading