Skip to content

Commit

Permalink
Remove unused ImagingPcdDecode
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 18, 2014
1 parent 64d44ec commit 382121a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 106 deletions.
2 changes: 0 additions & 2 deletions _imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -3345,7 +3345,6 @@ extern PyObject* PyImaging_Jpeg2KDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_TiffLzwDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_LibTiffDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_PackbitsDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_PcdDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_PcxDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_RawDecoderNew(PyObject* self, PyObject* args);
extern PyObject* PyImaging_TgaRleDecoderNew(PyObject* self, PyObject* args);
Expand Down Expand Up @@ -3419,7 +3418,6 @@ static PyMethodDef functions[] = {
{"libtiff_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
#endif
{"packbits_decoder", (PyCFunction)PyImaging_PackbitsDecoderNew, 1},
{"pcd_decoder", (PyCFunction)PyImaging_PcdDecoderNew, 1},
{"pcx_decoder", (PyCFunction)PyImaging_PcxDecoderNew, 1},
{"pcx_encoder", (PyCFunction)PyImaging_PcxEncoderNew, 1},
{"raw_decoder", (PyCFunction)PyImaging_RawDecoderNew, 1},
Expand Down
23 changes: 0 additions & 23 deletions decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,29 +455,6 @@ PyImaging_PackbitsDecoderNew(PyObject* self, PyObject* args)
}


/* -------------------------------------------------------------------- */
/* PCD */
/* -------------------------------------------------------------------- */

PyObject*
PyImaging_PcdDecoderNew(PyObject* self, PyObject* args)
{
ImagingDecoderObject* decoder;

decoder = PyImaging_DecoderNew(0);
if (decoder == NULL)
return NULL;

/* Unpack from PhotoYCC to RGB */
if (get_unpacker(decoder, "RGB", "YCC;P") < 0)
return NULL;

decoder->decode = ImagingPcdDecode;

return (PyObject*) decoder;
}


/* -------------------------------------------------------------------- */
/* PCX */
/* -------------------------------------------------------------------- */
Expand Down
2 changes: 0 additions & 2 deletions libImaging/Imaging.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,6 @@ extern int ImagingMpegDecode(Imaging im, ImagingCodecState state,
#endif
extern int ImagingPackbitsDecode(Imaging im, ImagingCodecState state,
UINT8* buffer, int bytes);
extern int ImagingPcdDecode(Imaging im, ImagingCodecState state,
UINT8* buffer, int bytes);
extern int ImagingPcxDecode(Imaging im, ImagingCodecState state,
UINT8* buffer, int bytes);
extern int ImagingPcxEncode(Imaging im, ImagingCodecState state,
Expand Down
78 changes: 0 additions & 78 deletions libImaging/PcdDecode.c

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"Histo", "JpegDecode", "JpegEncode", "LzwDecode", "Matrix",
"ModeFilter", "Negative", "Offset", "Pack",
"PackDecode", "Palette", "Paste", "Quant", "QuantOctree", "QuantHash",
"QuantHeap", "PcdDecode", "PcxDecode", "PcxEncode", "Point",
"QuantHeap", "PcxDecode", "PcxEncode", "Point",
"RankFilter", "RawDecode", "RawEncode", "Storage",
"TgaRleDecode", "Unpack", "UnpackYCC", "UnsharpMask", "XbmDecode",
"XbmEncode", "ZipDecode", "ZipEncode", "TiffDecode", "Incremental",
Expand Down

0 comments on commit 382121a

Please sign in to comment.