diff options
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 33e2d84e..91b1fb9e 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -1530,27 +1530,3 @@ int rewind_stream(Stream *st) return fseek(st->fh, 0, SEEK_SET); } - - -double extract_f_from_stuff(const char *field_name, - struct stuff_from_stream* stuff) -{ - int i; - - char field_name_plus_equal[256]; - sprintf(field_name_plus_equal, "hdf5%s = ", field_name); - - - - for ( i=0; i<stuff->n_fields; i++ ) { - - if ( strncmp(stuff->fields[i], field_name_plus_equal, - strlen(field_name_plus_equal)) == 0 ) { - return atoi(stuff->fields[i]+ - strlen(field_name_plus_equal)); - } - } - - ERROR("Failed to recovery camera length from stream file\n"); - return -1; -} |