diff options
author | Lei Zhang <thestig@chromium.org> | 2015-02-27 19:54:20 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-02-27 19:54:20 -0800 |
commit | 8411066e3d5d6afd2c7f38e2c03abd065a783239 (patch) | |
tree | 504b3c04e0a018f2a930e7ed2c07dbf910b36ddb /core/src/fpdfapi | |
parent | 654403aedf0aac9a26ff6fd1f1cca8532528e9b0 (diff) | |
download | pdfium-8411066e3d5d6afd2c7f38e2c03abd065a783239.tar.xz |
Merge to XFA: Cleanup: Fix some unused-function warnings.
Original URL: https://codereview.chromium.org/891113002
(cherry picked from commit 44fc192f29a77c5864fabffe5ab63937dacdfd21)
Review URL: https://codereview.chromium.org/966023002
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r-- | core/src/fpdfapi/fpdf_basic_module.cpp | 17 | ||||
-rw-r--r-- | core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/core/src/fpdfapi/fpdf_basic_module.cpp b/core/src/fpdfapi/fpdf_basic_module.cpp index edccda5743..82658ab51e 100644 --- a/core/src/fpdfapi/fpdf_basic_module.cpp +++ b/core/src/fpdfapi/fpdf_basic_module.cpp @@ -61,23 +61,6 @@ FX_BOOL CPDF_ModuleMgr::DownloadModule(FX_LPCSTR module_name) } return m_pDownloadCallback(module_name); } -static CFX_ByteString _GetPath(const CFX_ByteString& folder, FX_LPCSTR name) -{ - FX_STRSIZE folder_len = folder.GetLength(); -#if _FX_OS_ == _FX_SYMBIAN_ || _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ - if (folder[folder_len - 1] == '\\') { - return folder + name; - } else { - return (folder + "\\") + name; - } -#else - if (folder[folder_len - 1] == '/') { - return folder + name; - } else { - return (folder + "/") + name; - } -#endif -} void CPDF_ModuleMgr::NotifyModuleAvailable(FX_LPCSTR module_name) { if (FXSYS_strcmp(module_name, ADDIN_NAME_CJK) == 0) { diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp index 45d0078e8a..4583bc1b25 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp @@ -329,7 +329,6 @@ int CPDF_DIBSource::StartLoadDIBSource(CPDF_Document* pDoc, const CPDF_Stream* p if (m_pStreamAcc->GetSize() == 0 || m_pStreamAcc->GetData() == NULL) { return 0; } - const CFX_ByteString& decoder = m_pStreamAcc->GetImageDecoder(); int ret = CreateDecoder(); if (ret != 1) { if (!ret) { |