diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-14 11:09:35 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-14 15:54:57 +0000 |
commit | c068c8e1ac5d41ace2a89827601669e8b573ef48 (patch) | |
tree | 0c10481a29ae297b839279844a7446f3ac5d935a /xfa/fde | |
parent | 24b6af6c87f0d7f49f5213ae019616b9b07e2e8f (diff) | |
download | pdfium-c068c8e1ac5d41ace2a89827601669e8b573ef48.tar.xz |
Remove FDE_VISUALOBJ_Canvas
No code sets the visual object type of Canvas. Remove.
Change-Id: I213bf7bb93adbb08e949807f53a9e94579d59c1d
Reviewed-on: https://pdfium-review.googlesource.com/10614
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fde')
-rw-r--r-- | xfa/fde/cfde_rendercontext.cpp | 3 | ||||
-rw-r--r-- | xfa/fde/cfde_visualsetiterator.cpp | 8 | ||||
-rw-r--r-- | xfa/fde/ifde_visualset.h | 1 |
3 files changed, 0 insertions, 12 deletions
diff --git a/xfa/fde/cfde_rendercontext.cpp b/xfa/fde/cfde_rendercontext.cpp index dd6dfa0aee..284de5daa2 100644 --- a/xfa/fde/cfde_rendercontext.cpp +++ b/xfa/fde/cfde_rendercontext.cpp @@ -58,9 +58,6 @@ void CFDE_RenderContext::DoRender() { RenderText(static_cast<CFDE_TxtEdtTextSet*>(pVisualSet), pPiece); iCount += 5; break; - case FDE_VISUALOBJ_Canvas: - NOTREACHED(); - break; default: break; } diff --git a/xfa/fde/cfde_visualsetiterator.cpp b/xfa/fde/cfde_visualsetiterator.cpp index 5fd84ede8a..d5b6b1bfe7 100644 --- a/xfa/fde/cfde_visualsetiterator.cpp +++ b/xfa/fde/cfde_visualsetiterator.cpp @@ -66,14 +66,6 @@ FDE_TEXTEDITPIECE* CFDE_VisualSetIterator::GetNext( ASSERT(pObj); FDE_VISUALOBJTYPE eType = pVisualSet->GetType(); - if (eType == FDE_VISUALOBJ_Canvas) { - FDE_CANVASITEM canvas; - canvas.hCanvas = pObj; - canvas.pCanvas = static_cast<CFDE_TxtEdtPage*>(pVisualSet); - canvas.pos = canvas.pCanvas->GetFirstPosition(); - m_CanvasStack.push(canvas); - break; - } uint32_t dwObj = (uint32_t)eType; if ((m_dwFilter & dwObj) != 0) { if (ppCanvasSet) diff --git a/xfa/fde/ifde_visualset.h b/xfa/fde/ifde_visualset.h index b5babd2c46..4f9e932657 100644 --- a/xfa/fde/ifde_visualset.h +++ b/xfa/fde/ifde_visualset.h @@ -18,7 +18,6 @@ class FXTEXT_CHARPOS; enum FDE_VISUALOBJTYPE { - FDE_VISUALOBJ_Canvas = 0x00, FDE_VISUALOBJ_Text = 0x01 }; |