Commit 5d2605f4 authored by Thomas White's avatar Thomas White
Browse files

Remove useless function parameter

parent 11d82aa6
......@@ -122,13 +122,14 @@ static double partiality(double r1, double r2, double r)
}
static int check_reflection(struct image *image, double mres, int output,
static int check_reflection(struct image *image, double mres,
RefList *reflections,
signed int h, signed int k, signed int l,
double asx, double asy, double asz,
double bsx, double bsy, double bsz,
double csx, double csy, double csz)
{
const int output = 0;
double xl, yl, zl;
double ds, ds_sq;
double rlow, rhigh; /* "Excitation error" */
......@@ -229,8 +230,7 @@ static int check_reflection(struct image *image, double mres, int output,
}
RefList *find_intersections(struct image *image, UnitCell *cell,
int output)
RefList *find_intersections(struct image *image, UnitCell *cell)
{
double asx, asy, asz;
double bsx, bsy, bsz;
......@@ -265,7 +265,7 @@ RefList *find_intersections(struct image *image, UnitCell *cell,
for ( h=-hmax; h<=hmax; h++ ) {
for ( k=-kmax; k<=kmax; k++ ) {
for ( l=-lmax; l<=lmax; l++ ) {
check_reflection(image, mres, output, reflections, h, k, l,
check_reflection(image, mres, reflections, h, k, l,
asx,asy,asz,bsx,bsy,bsz,csx,csy,csz);
}
}
......@@ -320,7 +320,7 @@ void update_partialities(struct image *image, const char *sym,
RefListIterator *iter;
RefList *predicted;
predicted = find_intersections(image, image->indexed_cell, 0);
predicted = find_intersections(image, image->indexed_cell);
for ( refl = first_refl(predicted, &iter);
refl != NULL;
......
......@@ -19,8 +19,7 @@
#include "reflist.h"
extern RefList *find_intersections(struct image *image, UnitCell *cell,
int output);
extern RefList *find_intersections(struct image *image, UnitCell *cell);
extern void update_partialities(struct image *image, const char *sym,
ReflItemList *scalable,
......
......@@ -322,7 +322,7 @@ static void process_image(void *pp, int cookie)
image.bw = beam->bandwidth;
image.profile_radius = 0.0001e9;
image.reflections = find_intersections(&image,
image.indexed_cell, 0);
image.indexed_cell);
integrate_reflections(&image, config_polar,
pargs->static_args.config_closer,
......
......@@ -282,7 +282,7 @@ int main(int argc, char *argv[])
snprintf(image.filename, 255, "(simulated %i)", i);
image.reflections = find_intersections(&image,
image.indexed_cell, 0);
image.indexed_cell);
calculate_partials(image.reflections, osf, full, sym);
/* Give a slightly incorrect cell in the stream */
......
......@@ -107,12 +107,12 @@ static void calc_either_side(struct image *image, double incr_val,
UnitCell *cell;
cell = new_shifted_cell(image->indexed_cell, refine, -incr_val);
compare = find_intersections(image, cell, 0);
compare = find_intersections(image, cell);
scan_partialities(image->reflections, compare, valid, vals, 0);
cell_free(cell);
cell = new_shifted_cell(image->indexed_cell, refine, +incr_val);
compare = find_intersections(image, cell, 0);
compare = find_intersections(image, cell);
scan_partialities(image->reflections, compare, valid, vals, 2);
cell_free(cell);
}
......@@ -129,7 +129,7 @@ static int test_gradients(struct image *image, double incr_val, int refine,
int nref;
int n_acc, n_valid;
image->reflections = find_intersections(image, image->indexed_cell, 0);
image->reflections = find_intersections(image, image->indexed_cell);
nref = num_reflections(image->reflections);
if ( nref < 10 ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment