gmxpreprocess: clean up -Wunused-parameter warnings
[alexxy/gromacs.git] / src / programs / gmx / g_x2top.c
index 8a5c3d90556d1a817b5ef1c9f354922124cdd5e8..e9db6949b3d54c8202bccef2dc494b9c728b6785 100644 (file)
@@ -114,8 +114,8 @@ static int get_atype(char *nm)
 }
 
 void mk_bonds(int nnm, t_nm2type nmt[],
-              t_atoms *atoms, rvec x[], t_params *bond, int nbond[], char *ff,
-              gmx_bool bPBC, matrix box, gmx_atomprop_t aps)
+              t_atoms *atoms, rvec x[], t_params *bond, int nbond[],
+              gmx_bool bPBC, matrix box)
 {
     t_param b;
     int     i, j;
@@ -374,8 +374,7 @@ static void print_pl(FILE *fp, t_params plist[], int ftp, const char *name,
 }
 
 static void print_rtp(const char *filenm, const char *title, t_atoms *atoms,
-                      t_params plist[], gpp_atomtype_t atype, int cgnr[],
-                      int nbts, int bts[])
+                      t_params plist[], gpp_atomtype_t atype, int cgnr[])
 {
     FILE *fp;
     int   i, tp;
@@ -443,7 +442,6 @@ int gmx_x2top(int argc, char *argv[])
     t_nextnb           nnb;
     t_nm2type         *nm2t;
     t_mols             mymol;
-    gmx_atomprop_t     aps;
     int                nnm;
     char               title[STRLEN], forcefield[32], ffdir[STRLEN];
     rvec              *x; /* coordinates? */
@@ -526,8 +524,6 @@ int gmx_x2top(int argc, char *argv[])
         gmx_fatal(FARGS, "Specify at least one output file");
     }
 
-    aps = gmx_atomprop_init();
-
     /* Force field selection, interactive or direct */
     choose_ff(strcmp(ff, "select") == 0 ? NULL : ff,
               forcefield, sizeof(forcefield),
@@ -569,8 +565,7 @@ int gmx_x2top(int argc, char *argv[])
     }
     printf("Generating bonds from distances...\n");
     snew(nbonds, atoms->nr);
-    mk_bonds(nnm, nm2t, atoms, x, &(plist[F_BONDS]), nbonds, forcefield,
-             bPBC, box, aps);
+    mk_bonds(nnm, nm2t, atoms, x, &(plist[F_BONDS]), nbonds, bPBC, box);
 
     open_symtab(&symtab);
     atype = set_atom_type(&symtab, atoms, &(plist[F_BONDS]), nbonds, nnm, nm2t);
@@ -623,7 +618,7 @@ int gmx_x2top(int argc, char *argv[])
     if (bRTP)
     {
         print_rtp(ftp2fn(efRTP, NFILE, fnm), "Generated by x2top",
-                  atoms, plist, atype, cgnr, asize(bts), bts);
+                  atoms, plist, atype, cgnr);
     }
 
     if (debug)