diff options
author | Thomas White <taw@physics.org> | 2021-05-17 11:36:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-05-17 11:52:42 +0200 |
commit | affdfe20be27586a65b4db483f04481008ae63fe (patch) | |
tree | d4d48044481be5e11b36f3fed23b6f318a420a48 /libcrystfel/src | |
parent | 3f62bab1207cf7f057f4d3e3ee7387ee31be00f4 (diff) |
Mosflm: Remove dead code
This removes some old stub code. There doesn't seem to be a big need
for doing what the FIXME suggests.
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/indexers/mosflm.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libcrystfel/src/indexers/mosflm.c b/libcrystfel/src/indexers/mosflm.c index 5d107234..02532103 100644 --- a/libcrystfel/src/indexers/mosflm.c +++ b/libcrystfel/src/indexers/mosflm.c @@ -877,19 +877,6 @@ void mosflm_cleanup(void *pp) } -static void chop_word(char *s) -{ - int i; - size_t l = strlen(s); - for ( i=0; i<l; i++ ) { - if ( s[i] == ' ' ) { - s[i] = '\0'; - return; - } - } -} - - const char *mosflm_probe(UnitCell *cell) { pid_t pid; @@ -926,12 +913,7 @@ const char *mosflm_probe(UnitCell *cell) char *pos; if ( fgets(line, 1024, fh) != NULL ) { pos = strstr(line, "Mosflm version "); - if ( pos != NULL ) { - char *vers = pos+15; - ok = 1; - chop_word(vers); - /* FIXME: Set capabilities based on version */ - } + if ( pos != NULL ) ok = 1; } } |