diff --git a/lib/full-site-editing/templates.php b/lib/full-site-editing/templates.php index 08048b5b4b06e4..3b15473692680e 100644 --- a/lib/full-site-editing/templates.php +++ b/lib/full-site-editing/templates.php @@ -5,25 +5,6 @@ * @package gutenberg */ -/** - * Returns all block template file path of the current theme and its parent theme. - * Includes demo block template files if demo experiment is enabled. - * - * @return array $block_template_files A list of paths to all template files. - */ -function gutenberg_get_template_paths() { - $block_template_files = glob( get_stylesheet_directory() . '/block-templates/*.html' ); - $block_template_files = is_array( $block_template_files ) ? $block_template_files : array(); - - if ( is_child_theme() ) { - $child_block_template_files = glob( get_template_directory() . '/block-templates/*.html' ); - $child_block_template_files = is_array( $child_block_template_files ) ? $child_block_template_files : array(); - $block_template_files = array_merge( $block_template_files, $child_block_template_files ); - } - - return $block_template_files; -} - /** * Registers block editor 'wp_template' post type. */