Delete unused FXCodec_Format enum values in ProgressiveDecoder
Go through the code and delete all the FXCodec_Format enum values that
are unused.
Change-Id: I9c11656535f1f7f822108c817c4b7639b9931859
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/122233
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Tom Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcodec/progressive_decoder.cpp b/core/fxcodec/progressive_decoder.cpp
index 487a8e8..f4e1daa 100644
--- a/core/fxcodec/progressive_decoder.cpp
+++ b/core/fxcodec/progressive_decoder.cpp
@@ -1530,13 +1530,9 @@
case FXCodec_Invalid:
m_TransMethod = -1;
break;
- case FXCodec_1bppGray:
- m_TransMethod = 6;
- break;
case FXCodec_8bppGray:
m_TransMethod = 7;
break;
- case FXCodec_1bppRgb:
case FXCodec_8bppRgb:
m_TransMethod = 8;
break;
@@ -1557,13 +1553,9 @@
case FXCodec_Invalid:
m_TransMethod = -1;
break;
- case FXCodec_1bppGray:
- m_TransMethod = 6;
- break;
case FXCodec_8bppGray:
m_TransMethod = 7;
break;
- case FXCodec_1bppRgb:
case FXCodec_8bppRgb:
if (m_pDeviceBitmap->GetFormat() == FXDIB_Format::kArgb) {
m_TransMethod = 12;
diff --git a/core/fxcodec/progressive_decoder.h b/core/fxcodec/progressive_decoder.h
index 8b098d1..3bb6179 100644
--- a/core/fxcodec/progressive_decoder.h
+++ b/core/fxcodec/progressive_decoder.h
@@ -58,8 +58,6 @@
public:
enum FXCodec_Format {
FXCodec_Invalid = 0,
- FXCodec_1bppGray = 0x101,
- FXCodec_1bppRgb = 0x001,
FXCodec_8bppGray = 0x108,
FXCodec_8bppRgb = 0x008,
FXCodec_Rgb = 0x018,