Remove unused code.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 28 Sep 2012 04:05:21 +0000 (07:05 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 28 Sep 2012 04:11:12 +0000 (07:11 +0300)
- Remove unused header angstat.h (none of the functions were implemented
  anywhere) and function pointer typedefs t_first_x and t_next_x used
  only in it.
- Remove unused static function clear_v().

Change-Id: Ia58497ee5ef6f71174a9e7dfee4ad3a71b452fa1

src/gromacs/gmxlib/trxio.c
src/gromacs/legacyheaders/statutil.h
src/tools/angstat.h [deleted file]

index 9a298797ba4edb799ea27d64b091ab93f8557a7d..cacde3db4e7a6def483bcc2875bb8031cc7020e6 100644 (file)
@@ -947,15 +947,3 @@ void rewind_trj(t_trxstatus *status)
   
   gmx_fio_rewind(status->fio);
 }
-
-/***** V E L O C I T Y   S T U F F *****/
-
-static void clear_v(t_trxframe *fr)
-{
-  int i;
-
-  if (!fr->bV)
-    for(i=0; i<fr->natoms; i++)
-      clear_rvec(fr->v[i]);
-}
-
index 7ff7dfc5e417f8529528bfbd814ae5c0a5890485..9620f2c28733b1509d43726edc16446bbff771ea 100644 (file)
@@ -67,12 +67,6 @@ void setTimeValue(int tcontrol,real value);
 
 /* a dedicated status type contains fp, etc. */
 typedef struct t_trxstatus t_trxstatus;
-  
-typedef int t_first_x(t_trxstatus **status,const char *fn,real *t,rvec **x,
-                      matrix box);
-
-typedef gmx_bool t_next_x(t_trxstatus *status,real *t,int natoms,rvec x[],
-                      matrix box);
 
 /* I/O function types */
 
diff --git a/src/tools/angstat.h b/src/tools/angstat.h
deleted file mode 100644 (file)
index bac44eb..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 
- *                This source code is part of
- * 
- *                 G   R   O   M   A   C   S
- * 
- *          GROningen MAchine for Chemical Simulations
- * 
- *                        VERSION 3.2.0
- * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
- * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
- * Copyright (c) 2001-2004, The GROMACS development team,
- * check out http://www.gromacs.org for more information.
-
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * 
- * If you want to redistribute modifications, please consider that
- * scientific software is very special. Version control is crucial -
- * bugs must be traceable. We will be happy to consider code for
- * inclusion in the official distribution, but derived work must not
- * be called official GROMACS. Details are found in the README & COPYING
- * files - if they are missing, get the official version at www.gromacs.org.
- * 
- * To help us fund GROMACS development, we humbly ask that you cite
- * the papers on the package - you can find them in the top README file.
- * 
- * For more info, check our website at http://www.gromacs.org
- * 
- * And Hey:
- * Green Red Orange Magenta Azure Cyan Skyblue
- */
-
-#ifndef _angstat_h
-#define _angstat_h
-
-#include <stdio.h>
-#include <typedefs.h>
-
-extern void do_angav(FILE *status, char *title,
-                    atom_id index[], int nind, 
-                    char *outfile, gmx_bool bAT);
-
-extern void do_dihav(FILE *status, char *title,
-                    atom_id index[], int nind, 
-                    char *outfile, gmx_bool bAT);
-
-extern void ramachandran(FILE *status,atom_id index[],int nind,char *outfile);
-
-extern void dis_mon(FILE *status,atom_id index[],int nind,char *outfile,
-                   t_first_x *fx, t_next_x *nx);
-
-#endif