diff options
author | Thomas White <taw@physics.org> | 2021-03-31 18:41:15 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-04-01 09:45:41 +0200 |
commit | 66d47b78346617d2b66476b94d93ae1db814383d (patch) | |
tree | 9e494a4e6eb391e0f6d458021766b430a2b1f7d7 /libcrystfel/src | |
parent | 1778bbe31f50857ad5e8a9297ff2e1dc36cc6330 (diff) |
FromFile indexer, stream2sol.py: Remove space escaping
This isn't necessary after all, for the same reason that im-sandbox
doesn't need escaping: it can count off the fields where spaces aren't
allowed, and anything left is the filename. I was over-thinking things.
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/indexers/fromfile.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libcrystfel/src/indexers/fromfile.c b/libcrystfel/src/indexers/fromfile.c index 7d95baae..1f3cc0da 100644 --- a/libcrystfel/src/indexers/fromfile.c +++ b/libcrystfel/src/indexers/fromfile.c @@ -185,28 +185,6 @@ static int set_lattice(UnitCell *cell, const char *ltsym) } -static void unescape(char *line) -{ - size_t len; - int i, w; - int esc = 0; - - len = strlen(line); - w = 0; - for ( i=0; i<len; i++ ) { - if ( esc ) { - line[w++] = line[i]; - esc = 0; - } else if ( line[i] == '\\' ) { - esc = 1; - } else { - line[w++] = line[i]; - } - } - line[w] = '\0'; -} - - void *fromfile_prepare(IndexingMethod *indm, struct fromfile_options *opts) { FILE *fh; @@ -288,8 +266,6 @@ void *fromfile_prepare(IndexingMethod *indm, struct fromfile_options *opts) } } - unescape(line); - if ( make_key(&key, line, bits[0]) ) { ERROR("Failed to make key for %s %s\n", line, bits[0]); |