aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-05-06 16:43:00 +0200
committerThomas White <taw@physics.org>2015-05-06 16:43:00 +0200
commitfcd2dc119213369c84812c93b19c6d639170c4e4 (patch)
treeb4e3c23cc0bf11dcaef2b21aa3cc83d304e9652e /src
parentd1e428f1f456d4872c8a7c18b048829ebfd51f73 (diff)
Remove unused revert_crystal()
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index e98f7253..765f5cab 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -506,26 +506,6 @@ static struct param_backup backup_crystal(Crystal *cr)
}
-static void revert_crystal(Crystal *cr, struct param_backup b)
-{
- double asx, asy, asz;
- double bsx, bsy, bsz;
- double csx, csy, csz;
- struct image *image = crystal_get_image(cr);
-
- cell_get_reciprocal(b.cell, &asx, &asy, &asz,
- &bsx, &bsy, &bsz,
- &csx, &csy, &csz);
-
- cell_set_reciprocal(crystal_get_cell(cr), asx, asy, asz,
- bsx, bsy, bsz,
- csx, csy, csz);
-
- crystal_set_profile_radius(cr, b.profile_radius);
- image->div = b.div;
-}
-
-
static void free_backup_crystal(struct param_backup b)
{
cell_free(b.cell);