aboutsummaryrefslogtreecommitdiff
path: root/src/image.c
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/image.c
parent365b872a72ae6b4e00c612dd8b8717c605be26dc (diff)
Remove dead code
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c41
1 files changed, 0 insertions, 41 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)
{