aboutsummaryrefslogtreecommitdiffstats
path: root/fxbarcode
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-12-05 21:07:24 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-12-05 21:07:24 +0000
commit6f7f15be5f2dbb1d7a5e7eee246deeef7eabd720 (patch)
treece37133ca5c6286ff0375e94f15d6d66df50898a /fxbarcode
parent18125ece6ec95928e8f7c83cad9729a7606e8266 (diff)
downloadplatform_external_pdfium-6f7f15be5f2dbb1d7a5e7eee246deeef7eabd720.tar.gz
platform_external_pdfium-6f7f15be5f2dbb1d7a5e7eee246deeef7eabd720.tar.bz2
platform_external_pdfium-6f7f15be5f2dbb1d7a5e7eee246deeef7eabd720.zip
Remove unused CBC_ReedSolomonGF256Poly::EvaluateAt().
Change-Id: I2b37fab50fc9e015c20b4c5ab72e33f433bdf5c1 Reviewed-on: https://pdfium-review.googlesource.com/c/46556 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode')
-rw-r--r--fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp19
-rw-r--r--fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h1
2 files changed, 0 insertions, 20 deletions
diff --git a/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp b/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp
index 0c56c6e60..af6472a61 100644
--- a/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp
+++ b/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp
@@ -84,25 +84,6 @@ int32_t CBC_ReedSolomonGF256Poly::GetCoefficients(int32_t degree) const {
return m_coefficients[m_coefficients.size() - 1 - degree];
}
-int32_t CBC_ReedSolomonGF256Poly::EvaluateAt(int32_t a) {
- if (a == 0)
- return GetCoefficients(0);
-
- size_t size = m_coefficients.size();
- if (a == 1) {
- int32_t result = 0;
- for (size_t i = 0; i < size; i++)
- result = CBC_ReedSolomonGF256::AddOrSubtract(result, m_coefficients[i]);
- return result;
- }
- int32_t result = m_coefficients[0];
- for (size_t j = 1; j < size; j++) {
- result = CBC_ReedSolomonGF256::AddOrSubtract(m_field->Multiply(a, result),
- m_coefficients[j]);
- }
- return result;
-}
-
std::unique_ptr<CBC_ReedSolomonGF256Poly> CBC_ReedSolomonGF256Poly::Clone()
const {
auto temp = pdfium::MakeUnique<CBC_ReedSolomonGF256Poly>();
diff --git a/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h b/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h
index 810b4782b..5cd6b8580 100644
--- a/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h
+++ b/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h
@@ -26,7 +26,6 @@ class CBC_ReedSolomonGF256Poly final {
const std::vector<int32_t>& GetCoefficients() const;
int32_t GetDegree() const;
bool IsZero() const;
- int32_t EvaluateAt(int32_t a);
std::unique_ptr<CBC_ReedSolomonGF256Poly> AddOrSubtract(
const CBC_ReedSolomonGF256Poly* other);
std::unique_ptr<CBC_ReedSolomonGF256Poly> Multiply(