diff options
author | Thomas White <taw@physics.org> | 2017-10-12 15:18:05 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-10-12 16:25:14 +0200 |
commit | c0ce8fb481a89225a99c3ab27571ed22709d4ac2 (patch) | |
tree | b5fa978c0799460a139b4ead776bbd9349ae322e | |
parent | 6c4b925ec54e8678a8288d6a22f1c2a158a411f0 (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.
-rw-r--r-- | doc/reference/libcrystfel/CrystFEL-sections.txt | 1 | ||||
-rw-r--r-- | libcrystfel/src/reflist-utils.c | 10 | ||||
-rw-r--r-- | libcrystfel/src/reflist-utils.h | 2 | ||||
-rw-r--r-- | libcrystfel/src/reflist.c | 2 |
4 files changed, 3 insertions, 12 deletions
diff --git a/doc/reference/libcrystfel/CrystFEL-sections.txt b/doc/reference/libcrystfel/CrystFEL-sections.txt index 072f8b38..34cebc9b 100644 --- a/doc/reference/libcrystfel/CrystFEL-sections.txt +++ b/doc/reference/libcrystfel/CrystFEL-sections.txt @@ -68,7 +68,6 @@ SERIAL <FILE>reflist-utils</FILE> write_reflist write_reflist_2 -write_reflections_to_file read_reflections read_reflections_from_file asymmetric_indices 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. */ |