Parcourir la source

Remove unused code.

Maciej Gołaszewski il y a 6 ans
Parent
commit
babe8db49c
1 fichiers modifiés avec 1 ajouts et 6 suppressions
  1. 1 6
      packages/ckeditor5-engine/src/view/styles.js

+ 1 - 6
packages/ckeditor5-engine/src/view/styles.js

@@ -532,12 +532,7 @@ function getTopRightBottomLeftValueReducer( styleShorthand ) {
 
 		const reduced = [];
 
-		if ( top === left && left === bottom && bottom === right ) {
-			// Might be not set.
-			if ( top !== undefined ) {
-				return [ [ styleShorthand, top ] ];
-			}
-		} else if ( ![ top, right, left, bottom ].every( value => !!value ) ) {
+		if ( ![ top, right, left, bottom ].every( value => !!value ) ) {
 			if ( top ) {
 				reduced.push( [ styleShorthand + '-top', top ] );
 			}