diff options
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r-- | src/process_hkl.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index 0df12e75..7bc04846 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -26,6 +26,7 @@ #include "sfac.h" #include "reflections.h" #include "symmetry.h" +#include "stream.h" /* Number of divisions for intensity histograms */ @@ -535,26 +536,6 @@ static void merge_all(FILE *fh, double **pmodel, ReflItemList **pobserved, } -static int count_patterns(FILE *fh) -{ - char *rval; - - int n_total_patterns = 0; - do { - char line[1024]; - - rval = fgets(line, 1023, fh); - if ( rval == NULL ) continue; - if ( (strncmp(line, "Reflections from indexing", 25) == 0) - || (strncmp(line, "New pattern", 11) == 0) ) { - n_total_patterns++; - } - } while ( rval != NULL ); - - return n_total_patterns; -} - - int main(int argc, char *argv[]) { int c; |