mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Merge pull request #6584 from Trissolo/fix/geomPolygon-unused-code
Remove unused code in Geom.Polygon#setTo
This commit is contained in:
commit
2a5bf0e5f9
1 changed files with 1 additions and 8 deletions
|
@ -125,7 +125,6 @@ var Polygon = new Class({
|
|||
}
|
||||
|
||||
var p;
|
||||
var y0 = Number.MAX_VALUE;
|
||||
|
||||
// The points argument is an array, so iterate through it
|
||||
for (var i = 0; i < points.length; i++)
|
||||
|
@ -151,15 +150,9 @@ var Polygon = new Class({
|
|||
}
|
||||
|
||||
this.points.push(p);
|
||||
|
||||
// Lowest boundary
|
||||
if (p.y < y0)
|
||||
{
|
||||
y0 = p.y;
|
||||
}
|
||||
}
|
||||
|
||||
this.calculateArea(y0);
|
||||
this.calculateArea();
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue