aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-10-16 17:33:35 +0200
committerThomas White <taw@bitwiz.org.uk>2009-10-16 17:33:35 +0200
commitd86953bb7782c45408a8109a428490837f2ee590 (patch)
treeb5006e6edfebce379c950e4b94e951239251e27a /src
parent1f011b0f914fe4f8e8dec9dd1290795d24dc348c (diff)
The image list in sim-main.c is not needed
Diffstat (limited to 'src')
-rw-r--r--src/sim-main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sim-main.c b/src/sim-main.c
index 9c7c6c3c..304b29c1 100644
--- a/src/sim-main.c
+++ b/src/sim-main.c
@@ -42,7 +42,6 @@ static void main_show_help(const char *s)
int main(int argc, char *argv[])
{
int c, i;
- ImageList *list;
UnitCell *cell;
struct image image;
int nrefl;
@@ -69,7 +68,6 @@ int main(int argc, char *argv[])
deg2rad(120.0));
/* Define image parameters */
- list = image_list_new();
image.width = 512;
image.height = 512;
image.tilt = deg2rad(32.0);
@@ -81,7 +79,6 @@ int main(int argc, char *argv[])
image.resolution = 5120; /* 512 pixels in 10 cm */
image.lambda = 0.2e-9; /* LCLS wavelength */
image.data = malloc(512*512*2);
- image_add(list, &image);
/* Calculate reflections */
get_reflections(&image, cell, 1.0/CRYSTAL_SIZE);