Remove all complex Optimize mode logic from png.c
Swiss army knife of image processing
Brought to you by:
bfriesen
The optimize-mode logic in png.c is excessively complex, likely has bugs, and it fails to be as useful as external tools like pngcrush. Please remove all complex code supporting Optimize mode while leaving in place simple optimizations such as discarding an opaque transparency channel and selecting an appropriate output representation for the input. This work should be scheduled for after the 1.3.20 release.
This has been done in version 1.3.20.