aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/reflist-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-10-12 15:18:05 +0200
committerThomas White <taw@physics.org>2017-10-12 16:25:14 +0200
commitc0ce8fb481a89225a99c3ab27571ed22709d4ac2 (patch)
treeb5fa978c0799460a139b4ead776bbd9349ae322e /libcrystfel/src/reflist-utils.c
parent6c4b925ec54e8678a8288d6a22f1c2a158a411f0 (diff)
Remove write_reflections_to_file() from API
It's there because it used to be used to write the reflections into the stream. Therefore there was a need for a function to write a bare list of reflections to a file, with no headers. Since then, the stream and merged reflection file formats have diverged, so there's no use for this other than to confuse people.
Diffstat (limited to 'libcrystfel/src/reflist-utils.c')
-rw-r--r--libcrystfel/src/reflist-utils.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libcrystfel/src/reflist-utils.c b/libcrystfel/src/reflist-utils.c
index 380a1b8a..1aee6018 100644
--- a/libcrystfel/src/reflist-utils.c
+++ b/libcrystfel/src/reflist-utils.c
@@ -154,17 +154,11 @@ int find_equiv_in_list(RefList *list, signed int h, signed int k,
/**
- * write_reflections_to_file:
- * @fh: File handle to write to
- * @list: The reflection list to write
- *
- * This function writes the contents of @list to @fh,
- *
+ * Write the actual reflections to the file, no headers etc.
* Reflections which have a redundancy of zero will not be written.
- *
* The resulting list can be read back with read_reflections_from_file().
**/
-void write_reflections_to_file(FILE *fh, RefList *list)
+static void write_reflections_to_file(FILE *fh, RefList *list)
{
Reflection *refl;
RefListIterator *iter;