]> granicus.if.org Git - postgis/commitdiff
Drop commented out code
authorSandro Santilli <strk@keybit.net>
Thu, 5 May 2011 21:12:54 +0000 (21:12 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 5 May 2011 21:12:54 +0000 (21:12 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7104 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwout_wkb.c

index 25cf1296f857665e82e6ffadf6cb6336640391eb..4c9da7f0a746f008ac2bfebbbb1feb497e2320b3 100644 (file)
@@ -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);