From c8fdd993b550bc46db90813548ec0122a59fcd36 Mon Sep 17 00:00:00 2001 From: Bernie Reiter <96308+ockham@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:56:59 +0200 Subject: [PATCH] Scripts: Remove now-obsolete getRenderPropPaths() (#63661) Remove function `getRenderPropPaths()` from the `@wordpress/scripts` package. As of #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 Co-authored-by: gziolo --- packages/scripts/utils/config.js | 10 ---------- packages/scripts/utils/index.js | 2 -- 2 files changed, 12 deletions(-) diff --git a/packages/scripts/utils/config.js b/packages/scripts/utils/config.js index 44bcfb916b1f19..7196c0376377d4 100644 --- a/packages/scripts/utils/config.js +++ b/packages/scripts/utils/config.js @@ -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. * @@ -422,7 +413,6 @@ module.exports = { getWordPressSrcDirectory, getWebpackEntryPoints, getPhpFilePaths, - getRenderPropPaths, hasBabelConfig, hasCssnanoConfig, hasJestConfig, diff --git a/packages/scripts/utils/index.js b/packages/scripts/utils/index.js index 7c2a3d5ea34254..dc4008b16197d6 100644 --- a/packages/scripts/utils/index.js +++ b/packages/scripts/utils/index.js @@ -17,7 +17,6 @@ const { getWordPressSrcDirectory, getWebpackEntryPoints, getPhpFilePaths, - getRenderPropPaths, hasBabelConfig, hasCssnanoConfig, hasJestConfig, @@ -45,7 +44,6 @@ module.exports = { getWordPressSrcDirectory, getWebpackEntryPoints, getPhpFilePaths, - getRenderPropPaths, getBlockJsonModuleFields, getBlockJsonScriptFields, hasArgInCLI,