Skip to content

Commit

Permalink
Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Dec 22, 2023
1 parent 8ef0c8a commit eadf74b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -2429,7 +2429,6 @@ private static function get_block_nodes( $theme_json, $selectors = array() ) {
$variation_selectors = array();
$variation_nodes = array();

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

foreach ( $variation_elements as $variation_element => $variation_element_node ) {
// TODO: See if there is a way to clean up the generation of element selectors.
// The following code varies from standard block element selectors only to avoid
// that the $selectors[ $name ]['elements'][ $variation_element ] value would
// nest the block's root selector.
$nodes[] = array(
'path' => array( 'styles', 'blocks', $name, 'variations', $variation, 'elements', $variation_element ),
'selector' => static::scope_selector( $variation_selector, static::ELEMENTS[ $variation_element ] ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,6 @@ export const getNodesWithStyles = ( tree, blockSelectors ) => {
.featureSelectors
);

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

0 comments on commit eadf74b

Please sign in to comment.