Changeset: 7b7d7d82797e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7b7d7d82797e
Modified Files:
geom/monetdb5/geom.c
Branch: geo
Log Message:
removed dead code
(remains after removal of int2str() and its use)
diffs (43 lines):
diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -1597,7 +1597,6 @@ static str dumpPointsPolygon(BAT* idBAT,
const GEOSGeometry* exteriorRingGeometry;
int numInteriorRings=0, i=0;
str err;
- char* lvlStr = NULL;
int lvlDigitsNum = 10; //MAX_UNIT = 4,294,967,295
size_t pathLength = strlen(path);
char* newPath = NULL;
@@ -1619,7 +1618,6 @@ static str dumpPointsPolygon(BAT* idBAT,
strcpy(newPath, path);
lvlDigitsNum = sprintf(newPath+pathLength, "%u", *lvl);
strcpy(newPath+pathLength+lvlDigitsNum, extraStr);
- GDKfree(lvlStr);
//get the points in the exterior ring
@@ -1648,7 +1646,6 @@ static str dumpPointsPolygon(BAT* idBAT,
strcpy(newPath, path);
lvlDigitsNum = sprintf(newPath+pathLength, "%u", *lvl);
strcpy(newPath+pathLength+lvlDigitsNum, extraStr);
- GDKfree(lvlStr);
if((err = dumpPointsLineString(idBAT, geomBAT,
GEOSGetInteriorRingN(geosGeometry, i), newPath)) != MAL_SUCCEED) {
str msg = createException(MAL, "geom.DumpPoints", "%s",
err);
@@ -1668,7 +1665,6 @@ static str dumpPointsMultiGeometry(BAT*
const GEOSGeometry* multiGeometry = NULL;
str err;
unsigned int lvl = 0;
- char* lvlStr = NULL;
size_t pathLength = strlen(path);
char* newPath = NULL;
char* extraStr = ",";
@@ -1686,7 +1682,6 @@ static str dumpPointsMultiGeometry(BAT*
strcpy(newPath, path);
lvlDigitsNum = sprintf(newPath+pathLength, "%u", lvl);
strcpy(newPath+pathLength+lvlDigitsNum, extraStr);
- GDKfree(lvlStr);
//*secondLevel = 0;
if((err = dumpPointsGeometry(idBAT, geomBAT, multiGeometry,
newPath)) != MAL_SUCCEED) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list