From c0ce8fb481a89225a99c3ab27571ed22709d4ac2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 12 Oct 2017 15:18:05 +0200 Subject: 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. --- libcrystfel/src/reflist-utils.c | 10 ++-------- libcrystfel/src/reflist-utils.h | 2 -- libcrystfel/src/reflist.c | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) (limited to 'libcrystfel/src') 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; diff --git a/libcrystfel/src/reflist-utils.h b/libcrystfel/src/reflist-utils.h index d86eb398..50838b86 100644 --- a/libcrystfel/src/reflist-utils.h +++ b/libcrystfel/src/reflist-utils.h @@ -46,8 +46,6 @@ extern "C" { #define REFLECTION_END_MARKER "End of reflections" -extern void write_reflections_to_file(FILE *fh, RefList *list); - extern int write_reflist(const char *filename, RefList *list); extern int write_reflist_2(const char *filename, RefList *list, SymOpList *sym); diff --git a/libcrystfel/src/reflist.c b/libcrystfel/src/reflist.c index 3076cfe9..6f44681d 100644 --- a/libcrystfel/src/reflist.c +++ b/libcrystfel/src/reflist.c @@ -1181,7 +1181,7 @@ const char *reflist_get_notes(RefList *reflist) * * Appends the string @notes_add to the notes field for @reflist. The notes * will be stored in the reflection list file by, e.g., - * write_reflections_to_file(), and are meant to be for humans to read. + * write_reflist(), and are meant to be for humans to read. * Possible uses include making a record of the command line arguments used to * create the reflection list. */ -- cgit v1.2.3