aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-03-26 20:29:12 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:22 +0100
commitcbaff779101ea15dbe142a0f990a1b21a405a3b1 (patch)
tree97ae260f0bfaeb7f814b0db1e0a9b026ebcadabd /src
parent365b872a72ae6b4e00c612dd8b8717c605be26dc (diff)
Remove dead code
Diffstat (limited to 'src')
-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);