From: hbabcock <hba...@us...> - 2006-05-27 21:50:29
|
Update of /cvsroot/plplot/plplot/examples/c++ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11553/examples/c++ Modified Files: x01.cc x02.cc x08.cc x14.cc x16.cc x17.cc x18.cc x19.cc x21.cc Log Message: Removed unused variables these examples. Index: x01.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x01.cc,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- x01.cc 6 Dec 2005 16:36:03 -0000 1.20 +++ x01.cc 27 May 2006 21:50:26 -0000 1.21 @@ -114,7 +114,6 @@ x01::x01( int argc, char ** argv ) { - PLINT cur_strm, new_strm; char ver[80]; fontset = 1; Index: x17.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x17.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- x17.cc 17 May 2006 23:14:51 -0000 1.12 +++ x17.cc 27 May 2006 21:50:26 -0000 1.13 @@ -58,12 +58,12 @@ char x17::errmsg[160] = ""; x17::x17( int argc, char ** argv ) { - PLINT id1, id2, n, nsteps = 1000; + PLINT id1, n, nsteps = 1000; bool autoy, acc; PLFLT y1, y2, y3, y4, ymin, ymax, xlab, ylab; PLFLT t, tmin, tmax, tjump, dt, noise; PLINT colbox, collab, colline[4], styline[4]; - char *legline[4], toplab[20]; + char *legline[4]; // plplot initialization Index: x21.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x21.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- x21.cc 6 Dec 2005 16:36:03 -0000 1.13 +++ x21.cc 27 May 2006 21:50:26 -0000 1.14 @@ -166,7 +166,7 @@ x21::x21( int argc, char ** argv ) { PLFLT *x, *y, *z, *clev; - PLFLT *xg, *yg, **zg, **szg; + PLFLT *xg, *yg, **zg; PLFLT zmin, zmax, lzm, lzM; long ct; int i, j, k; @@ -230,7 +230,7 @@ ct = clock(); pls->griddata(x, y, z, pts, xg, xp, yg, yp, zg, alg, opt[alg-1]); - sprintf(xlab, "time=%d ms", (clock() - ct)/1000); + sprintf(xlab, "time=%ld ms", (clock() - ct)/1000); sprintf(ylab, "opt=%.3f", opt[alg-1]); /* - CSA can generate NaNs (only interpolates?!). Index: x19.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x19.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- x19.cc 7 Oct 2005 19:10:11 -0000 1.8 +++ x19.cc 27 May 2006 21:50:26 -0000 1.9 @@ -70,7 +70,6 @@ x19::x19( int argc, char ** argv ) { PLFLT minx, maxx, miny, maxy; - int c; // plplot initialization Index: x14.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x14.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- x14.cc 6 Dec 2005 16:36:03 -0000 1.13 +++ x14.cc 27 May 2006 21:50:26 -0000 1.14 @@ -86,9 +86,7 @@ * independent streams. \*--------------------------------------------------------------------------*/ x14::x14( int argc, char ** argv ) { - int i, digmax; - int xleng0 = 400, yleng0 = 300, xoff0 = 200, yoff0 = 200; - int xleng1 = 400, yleng1 = 300, xoff1 = 500, yoff1 = 500; + int digmax; // Select either TK or DP driver and use a small window // Using DP results in a crash at the end due to some odd cleanup problems Index: x02.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x02.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- x02.cc 7 Oct 2005 19:10:11 -0000 1.11 +++ x02.cc 27 May 2006 21:50:26 -0000 1.12 @@ -164,10 +164,6 @@ x02::x02( int argc, char ** argv ) { - int i, j; - double vmin, vmax; - char text[3]; - // plplot initialization pls = new plstream(); Index: x08.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x08.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- x08.cc 6 Dec 2005 16:36:03 -0000 1.15 +++ x08.cc 27 May 2006 21:50:26 -0000 1.16 @@ -152,7 +152,7 @@ bool rosen = true; PLFLT xx, yy, r; - PLFLT zmin, zmax; + PLFLT zmin = 0.0, zmax = 0.0; int ifshade; Index: x18.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x18.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- x18.cc 13 May 2006 05:22:43 -0000 1.11 +++ x18.cc 27 May 2006 21:50:26 -0000 1.12 @@ -60,7 +60,7 @@ x18::x18( int argc, char ** argv ) { - int i, j, k; + int i, k; PLFLT r; char title[80]; Index: x16.cc =================================================================== RCS file: /cvsroot/plplot/plplot/examples/c++/x16.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- x16.cc 6 Dec 2005 16:36:03 -0000 1.13 +++ x16.cc 27 May 2006 21:50:26 -0000 1.14 @@ -172,8 +172,6 @@ // calculated constants and array that depends on them PLFLT xspa = 2./(nx-1); PLFLT yspa = 2./(ny-1); - PLFLT tr[] = {xspa, 0.0, -1.0, 0.0, yspa, -1.0}; - // Set up data array |