From cbaff779101ea15dbe142a0f990a1b21a405a3b1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 26 Mar 2011 20:29:12 +0100 Subject: Remove dead code --- src/image.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'src/image.c') diff --git a/src/image.c b/src/image.c index 9f0127d3..75a8af0a 100644 --- a/src/image.c +++ b/src/image.c @@ -32,12 +32,6 @@ * same or different crystals. */ -struct _imagelist -{ - int n_images; - struct image *images; -}; - struct _imagefeaturelist { @@ -46,41 +40,6 @@ struct _imagefeaturelist }; -int image_add(ImageList *list, struct image *image) -{ - if ( list->images ) { - list->images = realloc(list->images, - (list->n_images+1)*sizeof(struct image)); - } else { - assert(list->n_images == 0); - list->images = malloc(sizeof(struct image)); - } - - /* Copy the metadata */ - list->images[list->n_images] = *image; - - /* Fill out some extra fields */ - list->images[list->n_images].features = NULL; - - list->n_images++; - - return list->n_images - 1; -} - - -ImageList *image_list_new() -{ - ImageList *list; - - list = malloc(sizeof(ImageList)); - - list->n_images = 0; - list->images = NULL; - - return list; -} - - void image_add_feature(ImageFeatureList *flist, double fs, double ss, struct image *parent, double intensity, const char *name) { -- cgit v1.2.3