From 26344686766418b7b4709e6c59a6ebae4d9fbfc3 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Wed, 19 Oct 2016 10:42:02 -0400 Subject: [PATCH] dead code removal --- src/compute_bond_local.cpp | 2 +- src/dump.cpp | 2 +- src/fix_halt.cpp | 2 -- src/neigh_derive.cpp | 14 ++++++-------- src/region.cpp | 1 - 5 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/compute_bond_local.cpp b/src/compute_bond_local.cpp index f7a87f6913..b866be6991 100644 --- a/src/compute_bond_local.cpp +++ b/src/compute_bond_local.cpp @@ -148,7 +148,7 @@ int ComputeBondLocal::compute_bonds(int flag) double vvib,vrotsq; double inertia,omegasq; double mvv2e; - double engpot,engtrans,engvib,engrot,engtot,fbond; + double engpot,engtrans,engvib,engrot,fbond; double *ptr; double **x = atom->x; diff --git a/src/dump.cpp b/src/dump.cpp index 3198429519..a49aaecd53 100644 --- a/src/dump.cpp +++ b/src/dump.cpp @@ -874,7 +874,7 @@ void Dump::modify_params(int narg, char **arg) format_float_user = NULL; // pass format none to child classes which may use it // not an error if they don't - int n = modify_param(narg-iarg,&arg[iarg]); + modify_param(narg-iarg,&arg[iarg]); iarg += 2; continue; } diff --git a/src/fix_halt.cpp b/src/fix_halt.cpp index da46353b6a..ca74efa454 100644 --- a/src/fix_halt.cpp +++ b/src/fix_halt.cpp @@ -194,10 +194,8 @@ void FixHalt::post_run() double FixHalt::bondmax() { double **x = atom->x; - double **f = atom->f; int **bondlist = neighbor->bondlist; int nbondlist = neighbor->nbondlist; - int nlocal = atom->nlocal; int i1,i2; double delx,dely,delz,rsq; diff --git a/src/neigh_derive.cpp b/src/neigh_derive.cpp index dcf85f844e..d53ff30fc5 100644 --- a/src/neigh_derive.cpp +++ b/src/neigh_derive.cpp @@ -232,8 +232,8 @@ void Neighbor::skip_from_granular(NeighList *list) { int i,j,ii,jj,m,n,nn,itype,jnum,joriginal,dnum,dnumbytes; tagint jtag; - int *neighptr,*jlist,*touchptr,*touchptr_skip; - double *shearptr,*shearptr_skip; + int *neighptr,*jlist,*touchptr; + double *shearptr; NeighList *listgranhistory; int *npartner; @@ -364,8 +364,8 @@ void Neighbor::skip_from_granular_off2on(NeighList *list) { int i,j,ii,jj,m,n,nn,itype,jnum,joriginal,dnum,dnumbytes; tagint itag,jtag; - int *neighptr,*jlist,*touchptr,*touchptr_skip; - double *shearptr,*shearptr_skip; + int *neighptr,*jlist,*touchptr; + double *shearptr; NeighList *listgranhistory; int *npartner; @@ -502,8 +502,8 @@ void Neighbor::skip_from_granular_off2on(NeighList *list) void Neighbor::skip_from_granular_off2on_onesided(NeighList *list) { int i,j,ii,jj,m,n,nn,itype,jnum,joriginal,flip,dnum,dnumbytes,tmp; - tagint itag,jtag; - int *surf,*neighptr,*jlist; + tagint jtag; + int *surf,*jlist; NeighList *listgranhistory; int *npartner; @@ -571,7 +571,6 @@ void Neighbor::skip_from_granular_off2on_onesided(NeighList *list) i = ilist_skip[ii]; itype = type[i]; if (iskip[itype]) continue; - itag = tag[i]; n = 0; @@ -625,7 +624,6 @@ void Neighbor::skip_from_granular_off2on_onesided(NeighList *list) i = ilist_skip[ii]; itype = type[i]; if (iskip[itype]) continue; - itag = tag[i]; // loop over parent non-skip granular list and optionally its history info diff --git a/src/region.cpp b/src/region.cpp index c23cb031c2..1244b57365 100644 --- a/src/region.cpp +++ b/src/region.cpp @@ -517,7 +517,6 @@ void Region::set_velocity() void Region::velocity_contact(double *vwall, double *x, int ic) { - Contact c = contact[ic]; double xc[3]; vwall[0] = vwall[1] = vwall[2] = 0.0; -- GitLab