From: Darafei Praliaskouski Date: Mon, 25 Dec 2017 22:05:39 +0000 (+0000) Subject: Drop box2d.c. X-Git-Tag: 2.5.0alpha~256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d10c2539a664842e4b68325e68e72426605db12;p=postgis Drop box2d.c. Closes #3955 Closes https://github.com/postgis/postgis/pull/178 git-svn-id: http://svn.osgeo.org/postgis/trunk@16187 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/.editorconfig b/.editorconfig index 336464cbe..1629a5f5f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -34,9 +34,6 @@ indent_size = 2 [liblwgeom/lwgeom_topo.{c,h}] indent_style = space -[liblwgeom/box2d.c] -indent_style = space - [liblwgeom/lwgeom_log.h] indent_style = space diff --git a/liblwgeom/Makefile.in b/liblwgeom/Makefile.in index b4d26ceeb..1012f23ed 100644 --- a/liblwgeom/Makefile.in +++ b/liblwgeom/Makefile.in @@ -54,7 +54,6 @@ SA_OBJS = \ bytebuffer.o \ measures.o \ measures3d.o \ - box2d.o \ ptarray.o \ lwgeom_api.o \ lwgeom.o \ diff --git a/liblwgeom/box2d.c b/liblwgeom/box2d.c deleted file mode 100644 index 8857eca03..000000000 --- a/liblwgeom/box2d.c +++ /dev/null @@ -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 . - * - ********************************************************************** - * - * Copyright (C) 2004-2015 Sandro Santilli - * Copyright (C) 2008-2011 Paul Ramsey - * Copyright (C) 2008 Mark Cave-Ayland - * - **********************************************************************/ - -#include -#include -#include - -#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; -} diff --git a/liblwgeom/liblwgeom_internal.h b/liblwgeom/liblwgeom_internal.h index 1340e3fe6..addce9110 100644 --- a/liblwgeom/liblwgeom_internal.h +++ b/liblwgeom/liblwgeom_internal.h @@ -335,7 +335,6 @@ LWTRIANGLE *lwtriangle_clone(const LWTRIANGLE *lwgeom); 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);