Skip to content

Commit

Permalink
Scripts: Remove now-obsolete getRenderPropPaths() (WordPress#63661)
Browse files Browse the repository at this point in the history
Remove function `getRenderPropPaths()` from the `@wordpress/scripts` package.

As of WordPress#63098, it is no longer used anywhere in Core. It has also never been part of the package's public interface.

Co-authored-by: ockham <bernhard-reiter@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>
  • Loading branch information
3 people authored and carstingaxion committed Jul 18, 2024
1 parent 784bbbf commit c8fdd99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
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

0 comments on commit c8fdd99

Please sign in to comment.