aboutsummaryrefslogtreecommitdiff
path: root/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-17 18:01:22 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:29 +0100
commit5d2605f47cee06d5367dc7d221816c52d8a5cda8 (patch)
treebdfadde2f97ac9dd4da9c7606660b5498444240b /src/geometry.c
parent11d82aa6456513f102364df1ebd3eed76f2d138f (diff)
Remove useless function parameter
Diffstat (limited to 'src/geometry.c')
-rw-r--r--src/geometry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/geometry.c b/src/geometry.c
index b53e1aa7..e0714694 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -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;