diff --git a/src/streamnet.cpp b/src/streamnet.cpp index 5118c53e..722c6776 100644 --- a/src/streamnet.cpp +++ b/src/streamnet.cpp @@ -221,7 +221,6 @@ void createStreamNetShapefile(char *streamnetsrc,char *streamnetlyr,OGRSpatialRe int reachshape(long *cnet,float *lengthd, float *elev, float *area, double *pointx, double *pointy, long np,tiffIO &obj) { // Function to write stream network shapefile - int nVertices; if (np < 2) {//singleton - will be duplicated nVertices = 2; @@ -229,17 +228,13 @@ int reachshape(long *cnet,float *lengthd, float *elev, float *area, double *poin else { nVertices = np; } - double *mypointx = new double[nVertices]; double *mypointy = new double[nVertices]; - double x,y,length,glength,x1,y1,xlast,ylast,usarea,dsarea,dslast,dl,drop,slope; int istart,iend,j; istart=cnet[1]; // start coord for first link iend=cnet[2];// end coord for first link - - x1=pointx[0]; y1=pointy[0]; length=0.; @@ -249,8 +244,6 @@ int reachshape(long *cnet,float *lengthd, float *elev, float *area, double *poin dslast=usarea; dsarea=usarea; long prt = 0; - //const char *pszDriverName = "ESRI Shapefile"; - for(j=0; j