aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-19 16:13:01 +0200
committerThomas White <taw@physics.org>2014-09-19 16:23:39 +0200
commit75befca053175140143e916337530b77a5fa4f8f (patch)
treea337948ea6d3f5e02e1d5b60fc61667f1b9f98ab /libcrystfel/src/cell.c
parent6a6cb3b4d7f15c234a79ff8421a0ae5c1a1dcb2a (diff)
Remove cell_{get,set}_pointgroup() from API
Diffstat (limited to 'libcrystfel/src/cell.c')
-rw-r--r--libcrystfel/src/cell.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libcrystfel/src/cell.c b/libcrystfel/src/cell.c
index 490a80ac..0dfeaa1e 100644
--- a/libcrystfel/src/cell.c
+++ b/libcrystfel/src/cell.c
@@ -93,7 +93,6 @@ struct _unitcell {
double ays; double bys; double cys;
double azs; double bzs; double czs;
- char *pointgroup;
LatticeType lattice_type;
char centering;
char unique_axis;
@@ -127,7 +126,6 @@ UnitCell *cell_new()
cell->rep = CELL_REP_CRYST;
- cell->pointgroup = strdup("1");
cell->lattice_type = L_TRICLINIC;
cell->centering = 'P';
cell->unique_axis = '?';
@@ -150,7 +148,6 @@ UnitCell *cell_new()
void cell_free(UnitCell *cell)
{
if ( cell == NULL ) return;
- free(cell->pointgroup);
free(cell);
}
@@ -298,7 +295,6 @@ UnitCell *cell_new_from_cell(UnitCell *orig)
cell_get_cartesian(orig, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
cell_set_cartesian(new, ax, ay, az, bx, by, bz, cx, cy, cz);
- cell_set_pointgroup(new, orig->pointgroup);
cell_set_lattice_type(new, orig->lattice_type);
cell_set_centering(new, orig->centering);
cell_set_unique_axis(new, orig->unique_axis);
@@ -323,13 +319,6 @@ void cell_set_reciprocal(UnitCell *cell,
}
-void cell_set_pointgroup(UnitCell *cell, const char *sym)
-{
- free(cell->pointgroup);
- cell->pointgroup = strdup(sym);
-}
-
-
void cell_set_centering(UnitCell *cell, char centering)
{
cell->centering = centering;
@@ -622,12 +611,6 @@ int cell_get_reciprocal(UnitCell *cell,
}
-const char *cell_get_pointgroup(UnitCell *cell)
-{
- return cell->pointgroup;
-}
-
-
char cell_get_centering(UnitCell *cell)
{
return cell->centering;