]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[image] Remove size from the image structure
authorCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 18 Nov 2009 23:13:39 +0000 (23:13 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 18 Nov 2009 23:13:39 +0000 (23:13 +0000)
Size was never used. Also removes the ply_image_get_size function.
Clean-up in preparation for merging with pixel-buffer.

src/libplybootsplash/ply-image.c
src/libplybootsplash/ply-image.h

index 64c0fe95e2ffe53ddcb0c843c3c76deaefc6f499..b3ad6a2ed644778ad3a20d5fc8f2cbc934f58d36 100644 (file)
@@ -61,7 +61,6 @@ struct _ply_image
   FILE  *fp;
 
   ply_image_layout_t layout;
-  size_t size;
 
   long width;
   long height;
@@ -105,7 +104,6 @@ ply_image_new (const char *filename)
   image->filename = strdup (filename);
   image->fp = NULL;
   image->layout.address = NULL;
-  image->size = -1;
   image->width = -1;
   image->height = -1;
 
@@ -246,14 +244,6 @@ ply_image_get_data (ply_image_t *image)
   return image->layout.as_pixels;
 }
 
-ssize_t
-ply_image_get_size (ply_image_t *image)
-{
-  assert (image != NULL);
-
-  return image->size;
-}
-
 long
 ply_image_get_width (ply_image_t *image)
 {
index 780050e4e9074f024d73fb1e4b13049c6484617c..3a9a49808f4fe870b411d501e530e983d9138a5d 100644 (file)
@@ -33,7 +33,6 @@ ply_image_t *ply_image_new (const char *filename);
 void ply_image_free (ply_image_t *image);
 bool ply_image_load (ply_image_t *image);
 uint32_t *ply_image_get_data (ply_image_t *image);
-ssize_t ply_image_get_size (ply_image_t *image);
 long ply_image_get_width (ply_image_t *image);
 long ply_image_get_height (ply_image_t *image);
 ply_image_t *ply_image_resize (ply_image_t *image, long width, long height);