[postgis-tickets] r16187 - Drop box2d.c.

Darafei komzpa at gmail.com
Mon Dec 25 02:05:39 PST 2017


Author: komzpa
Date: 2017-12-25 14:05:39 -0800 (Mon, 25 Dec 2017)
New Revision: 16187

Removed:
   trunk/liblwgeom/box2d.c
Modified:
   trunk/.editorconfig
   trunk/liblwgeom/Makefile.in
   trunk/liblwgeom/liblwgeom_internal.h
Log:
Drop box2d.c.

Closes #3955
Closes https://github.com/postgis/postgis/pull/178



Modified: trunk/.editorconfig
===================================================================
--- trunk/.editorconfig	2017-12-25 04:07:52 UTC (rev 16186)
+++ trunk/.editorconfig	2017-12-25 22:05:39 UTC (rev 16187)
@@ -34,9 +34,6 @@
 [liblwgeom/lwgeom_topo.{c,h}]
 indent_style = space
 
-[liblwgeom/box2d.c]
-indent_style = space
-
 [liblwgeom/lwgeom_log.h]
 indent_style = space
 

Modified: trunk/liblwgeom/Makefile.in
===================================================================
--- trunk/liblwgeom/Makefile.in	2017-12-25 04:07:52 UTC (rev 16186)
+++ trunk/liblwgeom/Makefile.in	2017-12-25 22:05:39 UTC (rev 16187)
@@ -54,7 +54,6 @@
 	bytebuffer.o \
 	measures.o \
 	measures3d.o \
-	box2d.o \
 	ptarray.o \
 	lwgeom_api.o \
 	lwgeom.o \

Deleted: trunk/liblwgeom/box2d.c
===================================================================
--- trunk/liblwgeom/box2d.c	2017-12-25 04:07:52 UTC (rev 16186)
+++ trunk/liblwgeom/box2d.c	2017-12-25 22:05:39 UTC (rev 16187)
@@ -1,48 +0,0 @@
-/**********************************************************************
- *
- * PostGIS - Spatial Types for PostgreSQL
- * http://postgis.net
- *
- * PostGIS is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * PostGIS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with PostGIS.  If not, see <http://www.gnu.org/licenses/>.
- *
- **********************************************************************
- *
- * Copyright (C) 2004-2015 Sandro Santilli <strk at kbt.io>
- * Copyright (C) 2008-2011 Paul Ramsey <pramsey at cleverelephant.ca>
- * Copyright (C) 2008 Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>
- *
- **********************************************************************/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "liblwgeom_internal.h"
-
-#ifndef EPSILON
-#define EPSILON        1.0E-06
-#endif
-#ifndef FPeq
-#define FPeq(A,B)     (fabs((A) - (B)) <= EPSILON)
-#endif
-
-
-
-GBOX *
-box2d_clone(const GBOX *in)
-{
-	GBOX *ret = lwalloc(sizeof(GBOX));
-	memcpy(ret, in, sizeof(GBOX));
-	return ret;
-}

Modified: trunk/liblwgeom/liblwgeom_internal.h
===================================================================
--- trunk/liblwgeom/liblwgeom_internal.h	2017-12-25 04:07:52 UTC (rev 16186)
+++ trunk/liblwgeom/liblwgeom_internal.h	2017-12-25 22:05:39 UTC (rev 16187)
@@ -335,7 +335,6 @@
 LWCOLLECTION *lwcollection_clone(const LWCOLLECTION *lwgeom);
 LWCIRCSTRING *lwcircstring_clone(const LWCIRCSTRING *curve);
 POINTARRAY *ptarray_clone(const POINTARRAY *ptarray);
-GBOX *box2d_clone(const GBOX *lwgeom);
 LWLINE *lwline_clone_deep(const LWLINE *lwgeom);
 LWPOLY *lwpoly_clone_deep(const LWPOLY *lwgeom);
 LWCOLLECTION *lwcollection_clone_deep(const LWCOLLECTION *lwgeom);



More information about the postgis-tickets mailing list