]> git.imager.perl.org - imager.git/commitdiff
remove the obsolete and unused i_img_new() function
authorTony Cook <tony@develop-help.com>
Mon, 6 Aug 2012 13:06:43 +0000 (23:06 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 14 Aug 2012 09:58:19 +0000 (19:58 +1000)
image.c
img8.c

diff --git a/image.c b/image.c
index b2561ef87b6a894f8f9a228cbc9372bd591cd5c2..f44391c099c7e4bc58ef8d672bba9581b67b55db 100644 (file)
--- a/image.c
+++ b/image.c
@@ -14,7 +14,7 @@ image.c - implements most of the basic functions of Imager and much of the rest
   i_color *c;
   c = i_color_new(red, green, blue, alpha);
   ICL_DESTROY(c);
-  i = i_img_new();
+  i = i_img_8_new();
   i_img_destroy(i);
   // and much more
 
diff --git a/img8.c b/img8.c
index c64a4cee54041cddc1f430e1322f342c9eebbdfe..29e9700a0389636ff670fd2e0cd192745e896a6e 100644 (file)
--- a/img8.c
+++ b/img8.c
@@ -108,41 +108,6 @@ im_img_8_new(pIMCTX, i_img_dim x,i_img_dim y,int ch) {
   return im;
 }
 
-#if 0
-/* 
-=item i_img_new()
-
-Create new image reference - notice that this isn't an object yet and
-this should be fixed asap.
-
-=cut
-*/
-
-
-i_img *
-i_img_new() {
-  i_img *im;
-  
-  mm_log((1,"i_img_struct()\n"));
-
-  im = i_img_alloc();
-  
-  *im = IIM_base_8bit_direct;
-  im->xsize=0;
-  im->ysize=0;
-  im->channels=3;
-  im->ch_mask=MAXINT;
-  im->bytes=0;
-  im->idata=NULL;
-
-  i_img_init(im);
-  
-  mm_log((1,"(%p) <- i_img_struct\n",im));
-  return im;
-}
-
-#endif
-
 /* 
 =item i_img_empty(im, x, y)