aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-25 11:35:33 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit9ecedeb9e33e371003bcd1c301027a5c82bcd4df (patch)
treeb73554d161a2de2bcec9ef3f2dc694ace1ce1551
parent95430af8e006e84173af5e918249b5e68832b3d1 (diff)
Remove duplicate code
-rw-r--r--src/gui_peaksearch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index 67f066ae..3e526eec 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -324,12 +324,7 @@ static void peaksearch_algo_changed(GtkWidget *combo,
G_CALLBACK(peaksearch_half_pixel_sig), proj);
} else if ( strcmp(algo_id, "cxi") == 0 ) {
-
- proj->peak_search_params.method = PEAK_CXI;
-
- add_check_param(proj->peak_params, "Half pixel shift",
- proj->peak_search_params.half_pixel_shift,
- G_CALLBACK(peaksearch_half_pixel_sig), proj);
+ ERROR("algo_id should be hdf5, not cxi\n");
} else {
ERROR("Unrecognised peak search '%s'\n", algo_id);