Skip to content

Commit

Permalink
No need to serialize padding
Browse files Browse the repository at this point in the history
  • Loading branch information
drwestco committed Jun 21, 2022
1 parent 9092908 commit 1ce5756
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/style-spec/expression/definitions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ CompoundExpression.register(expressions, {
[NumberType, NumberType, NumberType, NumberType],
rgba
],
// REVIEW: Need an entry for 'padding' here, to consume values produced by Literal.serialize?
'has': {
type: BooleanType,
overloads: [
Expand Down
2 changes: 0 additions & 2 deletions src/style-spec/expression/definitions/literal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class Literal implements Expression {
// couldn't actually generate with a "literal" expression,
// so we have to implement an equivalent serialization here
return ['rgba' as unknown].concat(this.value.toArray());
} else if (this.value instanceof Padding) {
return ['padding' as unknown].concat(this.value.toArray());
} else if (this.value instanceof Formatted) {
// Same as Color
return this.value.serialize();
Expand Down

0 comments on commit 1ce5756

Please sign in to comment.