Skip to content

Commit eadf74b

Browse files
Remove unnecessary comments
1 parent 8ef0c8a commit eadf74b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/class-wp-theme-json-gutenberg.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,6 @@ private static function get_block_nodes( $theme_json, $selectors = array() ) {
24292429
$variation_selectors = array();
24302430
$variation_nodes = array();
24312431

2432-
// TODO: Should we be supporting recursive variations and block type styles?
24332432
foreach ( $variations as $variation => $variation_node ) {
24342433
$variation_selector = $selectors[ $name ]['styleVariations'][ $variation ];
24352434
$variation_selectors[] = array(
@@ -2469,10 +2468,6 @@ private static function get_block_nodes( $theme_json, $selectors = array() ) {
24692468
}
24702469

24712470
foreach ( $variation_elements as $variation_element => $variation_element_node ) {
2472-
// TODO: See if there is a way to clean up the generation of element selectors.
2473-
// The following code varies from standard block element selectors only to avoid
2474-
// that the $selectors[ $name ]['elements'][ $variation_element ] value would
2475-
// nest the block's root selector.
24762471
$nodes[] = array(
24772472
'path' => array( 'styles', 'blocks', $name, 'variations', $variation, 'elements', $variation_element ),
24782473
'selector' => static::scope_selector( $variation_selector, static::ELEMENTS[ $variation_element ] ),

packages/block-editor/src/components/global-styles/use-global-styles-output.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ export const getNodesWithStyles = ( tree, blockSelectors ) => {
703703
.featureSelectors
704704
);
705705

706-
// TODO: Do we need to delay pushing these nodes so they come after the original block's node?
707706
nodes.push( {
708707
selector: variationBlockSelector,
709708
duotoneSelector: variationDuotoneSelector,

0 commit comments

Comments
 (0)