Skip to content

Commit

Permalink
Scripts: Remove now-obsolete getRenderPropPaths()
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jul 17, 2024
1 parent 1e7c478 commit 8b927fd
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 8b927fd

Please sign in to comment.