From: Arnar Mar Hrafnkelsson <addi@cpan.org>
Date: Wed, 24 Oct 2001 10:00:39 +0000 (+0000)
Subject: Removed C++ comments that SunSPro and HPUX cc were not liking.  Also removed
X-Git-Tag: Imager-0.48^2~530
X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/f08135660d6822c3a9545ba7042d9cb1ea815e7b

Removed C++ comments that SunSPro and HPUX cc were not liking.  Also removed
empty default cases with no break statement from switch statements.
---

diff --git a/tga.c b/tga.c
index 4bd4f894..e11c7a8e 100644
--- a/tga.c
+++ b/tga.c
@@ -184,7 +184,6 @@ color_unpack(unsigned char *buf, int bytepp, i_color *val) {
     val->rgba.r = buf[2];
     val->rgba.a = buf[3];
     break;
-  default:
   }
 }
 
@@ -232,7 +231,6 @@ color_pack(unsigned char *buf, int bitspp, i_color *val) {
     buf[2] = val->rgba.r;
     buf[3] = val->rgba.a;
     break;
-  default:
   }
 }
 
@@ -396,7 +394,6 @@ tga_source_read(tga_source *s, unsigned char *buf, size_t pixels) {
       ml = min(s->len, pixels-cp);
       for(k=0; k<ml; k++) for(j=0; j<s->bytepp; j++) 
 	buf[(cp+k)*s->bytepp+j] = s->cval[j];
-      //      memset(buf+cp, s->cidx, ml);
       cp     += ml;
       s->len -= ml;
       break;
@@ -748,7 +745,6 @@ i_writetga_wiol(i_img *img, io_glue *ig, int wierdpack, int compress, char *idst
   tga_header header;
   tga_dest dest;
   unsigned char headbuf[18];
-  //  unsigned char *data;
   unsigned int bitspp;
   
   int mapped;