]> granicus.if.org Git - postgis/commitdiff
Remove istypeM state variable from loader as it isn't used anymore.
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 26 Mar 2012 16:23:45 +0000 (16:23 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 26 Mar 2012 16:23:45 +0000 (16:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9547 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c
loader/shp2pgsql-core.h

index 52ab9b59acdd798acb32dca7e6ba7c1af17704fd..9f8b1be84a26e62fafab2f8e0abbbc2fa54bb7a1 100644 (file)
@@ -931,7 +931,6 @@ ShpLoaderOpenShape(SHPLOADERSTATE *state)
                        state->has_m = 1;
                        state->pgtype = "POINTM";
                        state->pgdims = 3;
-                       state->istypeM = 1;
                        break;
 
                case SHPT_ARCM:
@@ -940,7 +939,6 @@ ShpLoaderOpenShape(SHPLOADERSTATE *state)
                        state->has_m = 1;
                        state->pgtype = "MULTILINESTRINGM";
                        state->pgdims = 3;
-                       state->istypeM = 1;
                        break;
 
                case SHPT_POLYGONM:
@@ -949,7 +947,6 @@ ShpLoaderOpenShape(SHPLOADERSTATE *state)
                        state->has_m = 1;
                        state->pgtype = "MULTIPOLYGONM";
                        state->pgdims = 3;
-                       state->istypeM = 1;
                        break;
 
                case SHPT_MULTIPOINTM:
@@ -958,7 +955,6 @@ ShpLoaderOpenShape(SHPLOADERSTATE *state)
                        state->has_m = 1;
                        state->pgtype = "MULTIPOINTM";
                        state->pgdims = 3;
-                       state->istypeM = 1;
                        break;
 
                case SHPT_POINTZ:
index 73051d3f38ec910940fd39056cbe3cbae8d1eab3..80621cb5a3861304dd3141555c714af88b2e3c62 100644 (file)
@@ -197,9 +197,6 @@ typedef struct shp_loader_state
        /* Number of dimensions to output */
        int pgdims;
 
-       /* 0 = simple geometry, 1 = multi geometry */
-       int istypeM;
-
        /* Last (error) message */
        char message[SHPLOADERMSGLEN];