Remove unused debug code
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 8 Jan 2014 13:03:45 +0000 (14:03 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 8 Jan 2014 23:23:29 +0000 (00:23 +0100)
This serves no purpose, and was causing minor problems with TNG
development.

Change-Id: Icec86de6e16d68773e89b67b115924f12d1fe4e5

src/programs/gmx/gmxcheck.c

index 35bf837b45bf264be52d80b7a5a6fa4b0460fcdb..610ec1049a7cac8790b573714b49b5358a292a71 100644 (file)
@@ -285,7 +285,6 @@ void chk_trj(const output_env_t oenv, const char *fn, const char *tpr, real tol)
     t_count          count;
     t_fr_time        first, last;
     int              j = -1, new_natoms, natoms;
-    gmx_off_t        fpos;
     real             rdum, tt, old_t1, old_t2, prec;
     gmx_bool         bShowTimestep = TRUE, bOK, newline = FALSE;
     t_trxstatus     *status;
@@ -307,7 +306,6 @@ void chk_trj(const output_env_t oenv, const char *fn, const char *tpr, real tol)
     j      =  0;
     old_t2 = -2.0;
     old_t1 = -1.0;
-    fpos   = 0;
 
     count.bStep   = 0;
     count.bTime   = 0;
@@ -382,8 +380,6 @@ void chk_trj(const output_env_t oenv, const char *fn, const char *tpr, real tol)
 
         old_t2 = old_t1;
         old_t1 = fr.time;
-        /*if (fpos && ((j<10 || j%10==0)))
-           fprintf(stderr," byte: %10lu",(unsigned long)fpos);*/
         j++;
         new_natoms = fr.natoms;
 #define INC(s, n, f, l, item) if (s.item != 0) { if (n.item == 0) { first.item = fr.time; } last.item = fr.time; n.item++; \
@@ -396,7 +392,6 @@ void chk_trj(const output_env_t oenv, const char *fn, const char *tpr, real tol)
         INC(fr, count, first, last, bF);
         INC(fr, count, first, last, bBox);
 #undef INC
-        fpos = gmx_fio_ftell(trx_get_fileio(status));
     }
     while (read_next_frame(oenv, status, &fr));