Skip to content

Commit

Permalink
removes some development artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Jun 1, 2022
1 parent 7187c98 commit 9435626
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions lib/block-supports/elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ function gutenberg_render_elements_support_styles( $pre_render, $block ) {
return null;
}

$style = '';

$class_name = gutenberg_get_elements_class_name( $block );

if ( strpos( $link_color, 'var:preset|color|' ) !== false ) {
Expand Down
3 changes: 0 additions & 3 deletions lib/compat/wordpress-6.1/get-global-styles-and-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ function wp_add_global_styles_for_blocks() {
$block_nodes = $tree->get_styles_block_nodes();

foreach ( $block_nodes as $metadata ) {
if ( empty( $metadata['name'] ) ) {
continue;
}
$block_css = $tree->get_styles_for_block( $metadata );
$block_name = str_replace( 'core/', '', $metadata['name'] );
// These block styles are added on block_render.
Expand Down
3 changes: 0 additions & 3 deletions packages/block-editor/src/hooks/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ const getLinkColorFromAttributeValue = ( colors, value ) => {
export function ColorEdit( props ) {
const { name: blockName, attributes } = props;

if ( blockName === 'core/paragraph' ) {
// debugger;
}
// Some color settings have a special handling for deprecated flags in `useSetting`,
// so we can't unwrap them by doing const { ... } = useSetting('color')
// until https://github.com/WordPress/gutenberg/issues/37094 is fixed.
Expand Down

0 comments on commit 9435626

Please sign in to comment.