diff options
author | Nicolas Pena <npm@chromium.org> | 2017-07-12 16:35:28 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-12 20:55:25 +0000 |
commit | 2e7bfb7fac320a8dbeda67d10a39dd5519836921 (patch) | |
tree | 94f3ce87b3c00ba5920c845cf97a7f9d0bdf0ecb /core/fpdfapi/page/cpdf_devicecs.cpp | |
parent | dc1aa325c22a3d6cd240efa9d35f9e175fe8455b (diff) | |
download | pdfium-2e7bfb7fac320a8dbeda67d10a39dd5519836921.tar.xz |
Remove unused methods from CPDF_ColorSpace
Change-Id: Idbed9a2061d9d25ab12f8caaa09fe5ddba93cff7
Reviewed-on: https://pdfium-review.googlesource.com/7670
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_devicecs.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_devicecs.cpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/core/fpdfapi/page/cpdf_devicecs.cpp b/core/fpdfapi/page/cpdf_devicecs.cpp index 91dffb129c..b07e620604 100644 --- a/core/fpdfapi/page/cpdf_devicecs.cpp +++ b/core/fpdfapi/page/cpdf_devicecs.cpp @@ -106,65 +106,6 @@ bool CPDF_DeviceCS::GetRGB(float* pBuf, float* R, float* G, float* B) const { } } -bool CPDF_DeviceCS::v_GetCMYK(float* pBuf, - float* c, - float* m, - float* y, - float* k) const { - if (m_Family != PDFCS_DEVICECMYK) - return false; - - *c = pBuf[0]; - *m = pBuf[1]; - *y = pBuf[2]; - *k = pBuf[3]; - return true; -} - -bool CPDF_DeviceCS::SetRGB(float* pBuf, float R, float G, float B) const { - switch (m_Family) { - case PDFCS_DEVICEGRAY: - if (R != G || R != B) - return false; - *pBuf = R; - return true; - case PDFCS_DEVICERGB: - pBuf[0] = R; - pBuf[1] = G; - pBuf[2] = B; - return true; - case PDFCS_DEVICECMYK: - sRGB_to_AdobeCMYK(R, G, B, pBuf[0], pBuf[1], pBuf[2], pBuf[3]); - return true; - default: - NOTREACHED(); - return false; - } -} - -bool CPDF_DeviceCS::v_SetCMYK(float* pBuf, - float c, - float m, - float y, - float k) const { - switch (m_Family) { - case PDFCS_DEVICEGRAY: - return false; - case PDFCS_DEVICERGB: - std::tie(pBuf[0], pBuf[1], pBuf[2]) = AdobeCMYK_to_sRGB(c, m, y, k); - return true; - case PDFCS_DEVICECMYK: - pBuf[0] = c; - pBuf[1] = m; - pBuf[2] = y; - pBuf[3] = k; - return true; - default: - NOTREACHED(); - return false; - } -} - void CPDF_DeviceCS::TranslateImageLine(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels, |