From: Sandro Santilli Date: Thu, 5 May 2011 21:12:54 +0000 (+0000) Subject: Drop commented out code X-Git-Tag: 2.0.0alpha1~1704 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfb6b65125e0115ed66ff226cf85d17491e86d16;p=postgis Drop commented out code git-svn-id: http://svn.osgeo.org/postgis/trunk@7104 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwout_wkb.c b/liblwgeom/lwout_wkb.c index 25cf1296f..4c9da7f0a 100644 --- a/liblwgeom/lwout_wkb.c +++ b/liblwgeom/lwout_wkb.c @@ -310,11 +310,6 @@ static size_t ptarray_to_wkb_size(const POINTARRAY *pa, uchar variant) { int dims = 2; size_t size = 0; -#if 0 -/* see http://trac.osgeo.org/postgis/ticket/937 */ - if ( pa->npoints < 1 ) - return 0; -#endif if ( variant & (WKB_ISO | WKB_EXTENDED) ) dims = FLAGS_NDIMS(pa->flags); @@ -335,16 +330,6 @@ static uchar* ptarray_to_wkb_buf(const POINTARRAY *pa, uchar *buf, uchar variant int i, j; double *dbl_ptr; -#if 0 -/* see http://trac.osgeo.org/postgis/ticket/937 */ - /* Nothing to do with a pointarray with no ordinates */ - if ( pa->npoints < 1 ) - { - lwnotice("Point array has < 1 ordinates!"); - return buf; - } -#endif - /* SFSQL is always 2-d. Extended and ISO use all available dimensions */ if ( (variant & WKB_ISO) || (variant & WKB_EXTENDED) ) dims = FLAGS_NDIMS(pa->flags);