6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/hg/phyloGif/phyloGif.c src/hg/phyloGif/phyloGif.c index 39834f3..a208ea7 100644 --- src/hg/phyloGif/phyloGif.c +++ src/hg/phyloGif/phyloGif.c @@ -705,52 +705,38 @@ } else { dh = fHeight / 4; } mgDrawLine(mg, MARGIN+x, height+fHeight/2-dh, MARGIN+x, height+fHeight/2+dh, MG_BLACK); ++i; } } } - -#ifndef USE_PNG -if (onWeb) - { - printf("Content-type: image/gif\r\n"); - printf("\r\n"); - } - -if (!mgSaveToGif(stdout, mg, FALSE)) - { - errAbort("Couldn't save gif to stdout"); - } -#else if (onWeb) { printf("Content-type: image/png\r\n"); printf("\r\n"); } if (!mgSaveToPng(stdout, mg, FALSE)) { errAbort("Couldn't save png to stdout"); } -#endif if (cgiOptionalString("phyloGif_submit")) cartCheckout(&cart); /* there's no code for freeing the phyloTree yet in phyloTree.c */ mgFree(&mg); freez(&phyloData); return 0; }