Skip to content

Commit

Permalink
Remove some duplicate headers (much of this to be done...)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/postgis/trunk@8053 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
pramsey committed Oct 30, 2011
1 parent a7f6661 commit 93087d3
Show file tree
Hide file tree
Showing 21 changed files with 13 additions and 30 deletions.
1 change: 0 additions & 1 deletion liblwgeom/box2d.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#include "liblwgeom_internal.h"

Expand Down
1 change: 0 additions & 1 deletion liblwgeom/g_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
#include <math.h>
#include <stdlib.h>

GBOX* gbox_new(uint8_t flags)
Expand Down
9 changes: 6 additions & 3 deletions liblwgeom/liblwgeom_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@
#define _LIBLWGEOM_INTERNAL_H 1

#include <assert.h>
#include "liblwgeom.h"
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

#if HAVE_IEEEFP_H
#include <ieeefp.h>
#endif

#include "liblwgeom.h"


/**
* PI
*/
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/libtgeom.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*
**********************************************************************/

#include <stdio.h>
#include <limits.h>
#include <assert.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwcircstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"

Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwgeodetic.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
**********************************************************************/

#include <math.h>
#include "liblwgeom_internal.h"

extern int gbox_geocentric_slow;
Expand Down
8 changes: 3 additions & 5 deletions liblwgeom/lwgeom_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
**********************************************************************/


#include <math.h>
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"

#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>

#include "liblwgeom_internal.h"
#include "lwgeom_log.h"

/*
* Lower this to reduce integrity checks
*/
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "proj_api.h"
#include "liblwgeom.h"
#include "lwgeom_log.h"
#include <math.h>
#include <string.h>


Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwout_geojson.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
**********************************************************************/

#include "liblwgeom_internal.h"
#include <math.h> /* fabs */
#include <string.h> /* strlen */

static char *asgeojson_point(const LWPOINT *point, char *srs, GBOX *bbox, int precision);
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwout_gml.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


#include <string.h>
#include <math.h> /* fabs */
#include "liblwgeom_internal.h"


Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwout_kml.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#include "liblwgeom_internal.h"
#include "stringbuffer.h"
#include <math.h> /* fabs */

static int lwgeom_to_kml2_sb(const LWGEOM *geom, int precision, const char *prefix, stringbuffer_t *sb);
static int lwpoint_to_kml2_sb(const LWPOINT *point, int precision, const char *prefix, stringbuffer_t *sb);
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwout_svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
**********************************************************************/

#include "liblwgeom_internal.h"
#include <math.h> /* fabs */

static char * assvg_point(const LWPOINT *point, int relative, int precision);
static char * assvg_line(const LWLINE *line, int relative, int precision);
Expand Down
2 changes: 1 addition & 1 deletion liblwgeom/lwout_x3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@


#include <string.h>
#include <math.h> /* fabs */
#include "liblwgeom_internal.h"

/** defid is the id of the coordinate can be used to hold other elements DEF='abc' transform='' etc. **/
static size_t asx3d3_point_size(const LWPOINT *point, char *srs, int precision, int opts, const char *defid);
static char *asx3d3_point(const LWPOINT *point, char *srs, int precision, int opts, const char *defid);
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwsegmentize.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>

#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/measures.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*
**********************************************************************/

#include <math.h>
#include <string.h>
#include <stdlib.h>

Expand Down
1 change: 0 additions & 1 deletion liblwgeom/measures3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*
**********************************************************************/

#include <math.h>
#include <string.h>
#include <stdlib.h>

Expand Down
2 changes: 0 additions & 2 deletions liblwgeom/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# include <varargs.h>
#endif

#include <math.h>

#ifdef TEST
int global_total_width;
#endif
Expand Down
2 changes: 1 addition & 1 deletion libpgcommon/lwgeom_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://postgis.refractions.net
*
* Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
* Copyright (C) 2009-2010 Paul Ramsey <pramsey@cleverelephant.ca>
* Copyright (C) 2009-2011 Paul Ramsey <pramsey@cleverelephant.ca>
* Copyright (C) 2008 Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
* Copyright (C) 2004-2007 Refractions Research Inc.
*
Expand Down
2 changes: 1 addition & 1 deletion libpgcommon/lwgeom_pg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* PostGIS - Spatial Types for PostgreSQL
*
* Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
* Copyright (C) 2009-2010 Paul Ramsey <pramsey@cleverelephant.ca>
* Copyright (C) 2009-2011 Paul Ramsey <pramsey@cleverelephant.ca>
* Copyright (C) 2008 Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
* Copyright (C) 2004-2007 Refractions Research Inc.
*
Expand Down
3 changes: 0 additions & 3 deletions libpgcommon/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@
#include "liblwgeom.h"
#include "lwgeom_pg.h"

#include <math.h>
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>




#include "proj_api.h"
#include "utils/memutils.h"
#include "executor/spi.h"
Expand Down
2 changes: 1 addition & 1 deletion postgis/geography_inout.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* $Id$
*
* PostGIS - Spatial Types for PostgreSQL
* Copyright 2009 Paul Ramsey <pramsey@cleverelephant.ca>
* Copyright 2009-2011 Paul Ramsey <pramsey@cleverelephant.ca>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU General Public Licence. See the COPYING file.
Expand Down

0 comments on commit 93087d3

Please sign in to comment.