Skip to content

Commit df1537f

Browse files
committed
Remove redundant assignments
Already picked
1 parent 88b088b commit df1537f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/tilemaps/parsers/tiled/ParseObject.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,15 @@ var ParseObject = function (tiledObject, offsetX, offsetY)
5353
else if (tiledObject.ellipse)
5454
{
5555
parsedObject.ellipse = tiledObject.ellipse;
56-
parsedObject.width = tiledObject.width;
57-
parsedObject.height = tiledObject.height;
5856
}
5957
else if (tiledObject.text)
6058
{
61-
parsedObject.width = tiledObject.width;
62-
parsedObject.height = tiledObject.height;
6359
parsedObject.text = tiledObject.text;
6460
}
6561
else
6662
{
6763
// Otherwise, assume it is a rectangle
6864
parsedObject.rectangle = true;
69-
parsedObject.width = tiledObject.width;
70-
parsedObject.height = tiledObject.height;
7165
}
7266

7367
return parsedObject;

0 commit comments

Comments
 (0)