Skip to content

Commit

Permalink
Remove unused has_properties function
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 17, 2021
1 parent 5fddeff commit e0ef1d9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,21 +495,6 @@ private static function get_property_value( $styles, $path ) {
return $value;
}

/**
* Whether the metadata contains a key named properties.
*
* @param array $metadata Description of the style property.
*
* @return boolean True if properties exists, false otherwise.
*/
private static function has_properties( $metadata ) {
if ( array_key_exists( 'properties', $metadata ) ) {
return true;
}

return false;
}

/**
* Given a styles array, it extracts the style properties
* and adds them to the $declarations array following the format:
Expand Down

0 comments on commit e0ef1d9

Please sign in to comment.