Skip to content

Commit

Permalink
remove the obsolete and unused i_img_new() function
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Aug 14, 2012
1 parent 62b111e commit a0349ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
2 changes: 1 addition & 1 deletion image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 0 additions & 35 deletions img8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0349ca

Please sign in to comment.