Skip to content

Commit

Permalink
Removed Point::pointEmpty()
Browse files Browse the repository at this point in the history
It is now redundant with other factory methods.
  • Loading branch information
BenMorel committed Apr 16, 2015
1 parent df7d623 commit 097d6aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/IO/WKTAbstractReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function readGeometry(WKTParser $parser, $srid)
switch ($geometryType) {
case 'POINT':
if ($isEmpty) {
return Point::pointEmpty($cs);
return Point::create([], $cs);
}

return $this->readPointText($parser, $cs);
Expand Down
10 changes: 0 additions & 10 deletions src/Point.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,6 @@ public static function xyzmEmpty($srid = 0)
return new Point($cs, true);
}

/**
* @param CoordinateSystem $cs
*
* @return Point
*/
public static function pointEmpty(CoordinateSystem $cs)
{
return new Point($cs, true);
}

/**
* Factory method to create a new Point.
*
Expand Down

0 comments on commit 097d6aa

Please sign in to comment.