From 2f5b44635ac37f988b3b281c5aa0aada5a9d9d03 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 8 Feb 2011 14:24:03 +0100 Subject: Don't constantly re-integrate peaks --- src/reflist.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/reflist.c') diff --git a/src/reflist.c b/src/reflist.c index d297c4d0..2bb4e5f6 100644 --- a/src/reflist.c +++ b/src/reflist.c @@ -19,7 +19,6 @@ struct _reflection { /* Listy stuff */ - RefList *list; unsigned int serial; /* Unique serial number, key */ struct _reflection *child[2]; /* Child nodes */ struct _reflection *parent; /* Parent node */ @@ -224,32 +223,6 @@ void set_partial(Reflection *refl, double r1, double r2, double p, } -void set_indices(Reflection *refl, signed int h, signed int k, signed int l) -{ - /* Tricky, because the indices determine the position in the tree */ - Reflection copy; - Reflection *new; - Reflection transfer; - - /* Copy all data */ - copy = *refl; - - /* Delete and re-add with new indices */ - delete_refl(refl); - new = add_refl(copy.list, h, k, l); - - /* Transfer data back */ - transfer = *new; - *new = copy; - new->list = transfer.list; - new->parent = transfer.parent; - new->child[0] = transfer.child[0]; - new->child[1] = transfer.child[1]; - new->h = transfer.h; new->k = transfer.k; new->l = transfer.l; - new->serial = transfer.serial; -} - - void set_int(Reflection *refl, double intensity) { refl->intensity = intensity; -- cgit v1.2.3