aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-19 16:19:55 +0200
committerThomas White <taw@physics.org>2014-09-19 16:23:39 +0200
commit142e1ad4e0fad73d223c67a842dfb9728a3bf34c (patch)
tree90e6871f6281a373147000a6aaebfb1e0014bb32 /libcrystfel/src/cell.c
parent75befca053175140143e916337530b77a5fa4f8f (diff)
Remove cell_set_cartesian_{a,b,c}() from API
Diffstat (limited to 'libcrystfel/src/cell.c')
-rw-r--r--libcrystfel/src/cell.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/libcrystfel/src/cell.c b/libcrystfel/src/cell.c
index 0dfeaa1e..ec591e24 100644
--- a/libcrystfel/src/cell.c
+++ b/libcrystfel/src/cell.c
@@ -71,9 +71,6 @@ struct _unitcell {
CellRepresentation rep;
int have_parameters;
- int have_a;
- int have_b;
- int have_c;
/* Crystallographic representation */
double a; /* m */
@@ -130,9 +127,6 @@ UnitCell *cell_new()
cell->centering = 'P';
cell->unique_axis = '?';
cell->have_parameters = 0;
- cell->have_a = 0;
- cell->have_b = 0;
- cell->have_c = 0;
return cell;
}
@@ -199,42 +193,6 @@ void cell_set_cartesian(UnitCell *cell,
}
-void cell_set_cartesian_a(UnitCell *cell, double ax, double ay, double az)
-{
- if ( cell == NULL ) return;
- cell->ax = ax; cell->ay = ay; cell->az = az;
- cell->rep = CELL_REP_CART;
- cell->have_a = 1;
- if ( cell->have_a && cell->have_b && cell->have_c ) {
- cell->have_parameters = 1;
- }
-}
-
-
-void cell_set_cartesian_b(UnitCell *cell, double bx, double by, double bz)
-{
- if ( cell == NULL ) return;
- cell->bx = bx; cell->by = by; cell->bz = bz;
- cell->rep = CELL_REP_CART;
- cell->have_b = 1;
- if ( cell->have_a && cell->have_b && cell->have_c ) {
- cell->have_parameters = 1;
- }
-}
-
-
-void cell_set_cartesian_c(UnitCell *cell, double cx, double cy, double cz)
-{
- if ( cell == NULL ) return;
- cell->cx = cx; cell->cy = cy; cell->cz = cz;
- cell->rep = CELL_REP_CART;
- cell->have_c = 1;
- if ( cell->have_a && cell->have_b && cell->have_c ) {
- cell->have_parameters = 1;
- }
-}
-
-
UnitCell *cell_new_from_parameters(double a, double b, double c,
double alpha, double beta, double gamma)
{