Remove NOTREACHED_NORETURN() in CPDF_PSOP::GetFloatValue()
Use CHECK_EQ() instead.
Change-Id: Icf264d1f286104afaaacce364fa43f4a0f6b85b7
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/124330
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Tom Sepez <tsepez@google.com>
diff --git a/core/fpdfapi/page/cpdf_psengine.cpp b/core/fpdfapi/page/cpdf_psengine.cpp
index 75f3156..2918736 100644
--- a/core/fpdfapi/page/cpdf_psengine.cpp
+++ b/core/fpdfapi/page/cpdf_psengine.cpp
@@ -17,7 +17,6 @@
#include "core/fxcrt/check_op.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/fx_string.h"
-#include "core/fxcrt/notreached.h"
namespace {
@@ -107,10 +106,8 @@
}
float CPDF_PSOP::GetFloatValue() const {
- if (m_op == PSOP_CONST)
- return m_value;
-
- NOTREACHED_NORETURN();
+ CHECK_EQ(m_op, PSOP_CONST);
+ return m_value;
}
bool CPDF_PSEngine::Execute() {