From: Tony Cook Date: Mon, 6 Aug 2012 13:06:43 +0000 (+1000) Subject: remove the obsolete and unused i_img_new() function X-Git-Tag: v0.93_02~48 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/3c5a01b3bee926ae119c8b6a7df92eece4462cb8 remove the obsolete and unused i_img_new() function --- diff --git a/image.c b/image.c index b2561ef8..f44391c0 100644 --- 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 c64a4cee..29e9700a 100644 --- 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)