some more dead code removed that was detected by clang 15
This commit is contained in:
@ -18,10 +18,8 @@
|
|||||||
#include "atom.h"
|
#include "atom.h"
|
||||||
#include "comm.h"
|
#include "comm.h"
|
||||||
#include "domain.h"
|
#include "domain.h"
|
||||||
#include "fft3d_wrap.h"
|
|
||||||
#include "math_const.h"
|
#include "math_const.h"
|
||||||
#include "math_special.h"
|
#include "math_special.h"
|
||||||
#include "memory.h"
|
|
||||||
#include "neigh_list.h"
|
#include "neigh_list.h"
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|||||||
@ -148,11 +148,7 @@ void ComputeFragmentAtom::compute_peratom()
|
|||||||
|
|
||||||
commflag = 1;
|
commflag = 1;
|
||||||
|
|
||||||
int iteration = 0;
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
iteration++;
|
|
||||||
|
|
||||||
comm->forward_comm(this);
|
comm->forward_comm(this);
|
||||||
done = 1;
|
done = 1;
|
||||||
|
|
||||||
|
|||||||
@ -981,7 +981,6 @@ void Image::compute_SSAO()
|
|||||||
|
|
||||||
double minPeak = -1;
|
double minPeak = -1;
|
||||||
double peakLen = 0.0;
|
double peakLen = 0.0;
|
||||||
int stepsTaken = 1;
|
|
||||||
while ((small > 0 && ind <= end) || (small < 0 && ind >= end)) {
|
while ((small > 0 && ind <= end) || (small < 0 && ind >= end)) {
|
||||||
if (ind < 0 || ind >= (width*height)) {
|
if (ind < 0 || ind >= (width*height)) {
|
||||||
break;
|
break;
|
||||||
@ -1001,7 +1000,6 @@ void Image::compute_SSAO()
|
|||||||
ind += large;
|
ind += large;
|
||||||
err -= 1.0;
|
err -= 1.0;
|
||||||
}
|
}
|
||||||
stepsTaken ++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (peakLen > 0) {
|
if (peakLen > 0) {
|
||||||
|
|||||||
@ -187,7 +187,7 @@ double RanMars::besselexp(double theta, double alpha, double cp)
|
|||||||
|
|
||||||
void RanMars::select_subset(bigint ntarget, int nmine, int *mark, int *next)
|
void RanMars::select_subset(bigint ntarget, int nmine, int *mark, int *next)
|
||||||
{
|
{
|
||||||
int mode,index,oldindex,newvalue,nflip,which,niter;
|
int mode,index,oldindex,newvalue,nflip,which;
|
||||||
int active[2],first[2];
|
int active[2],first[2];
|
||||||
int newactive[2],newfirst[2],newlast[2];
|
int newactive[2],newfirst[2],newlast[2];
|
||||||
bigint nmark,nflipall;
|
bigint nmark,nflipall;
|
||||||
@ -209,8 +209,6 @@ void RanMars::select_subset(bigint ntarget, int nmine, int *mark, int *next)
|
|||||||
if (nmine > 0) next[nmine-1] = -1;
|
if (nmine > 0) next[nmine-1] = -1;
|
||||||
|
|
||||||
nmark = 0;
|
nmark = 0;
|
||||||
niter = 0;
|
|
||||||
|
|
||||||
while (nmark != ntarget) {
|
while (nmark != ntarget) {
|
||||||
|
|
||||||
// choose to ADD or SUBTRACT from current nmark
|
// choose to ADD or SUBTRACT from current nmark
|
||||||
@ -285,13 +283,6 @@ void RanMars::select_subset(bigint ntarget, int nmine, int *mark, int *next)
|
|||||||
|
|
||||||
if (mode == ADD) nmark += nflipall;
|
if (mode == ADD) nmark += nflipall;
|
||||||
else if (mode == SUBTRACT) nmark -= nflipall;
|
else if (mode == SUBTRACT) nmark -= nflipall;
|
||||||
|
|
||||||
niter++;
|
|
||||||
|
|
||||||
// DEBUG output of stats
|
|
||||||
|
|
||||||
//if (comm->me == 0) printf("%d %ld %ld %g %ld\n",
|
|
||||||
// niter,nmark,nactiveall,thresh,nflipall);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user