aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/image.c41
-rw-r--r--src/image.h9
2 files changed, 0 insertions, 50 deletions
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)
{
diff --git a/src/image.h b/src/image.h
index dc93de0f..92047aa1 100644
--- a/src/image.h
+++ b/src/image.h
@@ -147,15 +147,6 @@ struct image {
};
-/* An opaque type representing a list of images */
-typedef struct _imagelist ImageList;
-
-
-/* Image lists */
-extern ImageList *image_list_new(void);
-
-extern int image_add(ImageList *list, struct image *image);
-
/* Feature lists */
extern ImageFeatureList *image_feature_list_new(void);