diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-09-08 18:05:06 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-09-08 18:05:06 +0000 |
commit | 94b1e38e7b95863d126759f652568671b70a1be0 (patch) | |
tree | eb12bece3bcd20030b756db5397fb274d89712c4 /lib/libpgm1.c | |
parent | 8a8e5092bc8d84e3e3634e8c50604d523359778e (diff) | |
download | netpbm-mirror-94b1e38e7b95863d126759f652568671b70a1be0.tar.gz netpbm-mirror-94b1e38e7b95863d126759f652568671b70a1be0.tar.xz netpbm-mirror-94b1e38e7b95863d126759f652568671b70a1be0.zip |
remove dead code
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@406 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpgm1.c')
-rw-r--r-- | lib/libpgm1.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/libpgm1.c b/lib/libpgm1.c index f5d89f9c..f615069d 100644 --- a/lib/libpgm1.c +++ b/lib/libpgm1.c @@ -166,31 +166,6 @@ pgm_readpgminit(FILE * const fileP, -gray -pgm_getrawsample(FILE * const file, - gray const maxval) { - - if (maxval < 256) { - /* The sample is just one byte. Read it. */ - return(pm_getrawbyte(file)); - } else { - /* The sample is two bytes. Read both. */ - unsigned char byte_pair[2]; - size_t pairs_read; - - pairs_read = fread(&byte_pair, 2, 1, file); - if (pairs_read == 0) - pm_error("EOF /read error while reading a long sample"); - /* This could be a few instructions faster if exploited the internal - format (i.e. endianness) of a pixval. Then we might be able to - skip the shifting and oring. - */ - return((byte_pair[0]<<8) | byte_pair[1]); - } -} - - - static void readRpgmRow(FILE * const fileP, gray * const grayrow, |