diff options
author | Lei Zhang <thestig@chromium.org> | 2018-01-30 18:31:40 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-30 18:31:40 +0000 |
commit | 95dd8dad6b1b2ac31aca84afe677205c7ed47f7f (patch) | |
tree | ecd066f9fd3033e1f6218a77ec8b2029ff63b592 /core/fxge/win32/cfx_psrenderer.cpp | |
parent | acbef05aa0dbceabf47d700968ccd6569524fe74 (diff) | |
download | pdfium-95dd8dad6b1b2ac31aca84afe677205c7ed47f7f.tar.xz |
Remove not reachable branch in fxge code.
BUG=chromium:805881
Change-Id: I5f920649f425d0cfc47c780b36ed70f23cbe1299
Reviewed-on: https://pdfium-review.googlesource.com/24191
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/win32/cfx_psrenderer.cpp')
-rw-r--r-- | core/fxge/win32/cfx_psrenderer.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/core/fxge/win32/cfx_psrenderer.cpp b/core/fxge/win32/cfx_psrenderer.cpp index 1513c07c68..417a1d7b85 100644 --- a/core/fxge/win32/cfx_psrenderer.cpp +++ b/core/fxge/win32/cfx_psrenderer.cpp @@ -234,23 +234,19 @@ void CFX_PSRenderer::SetClip_PathStroke(const CFX_PathData* pPathData, const CFX_GraphStateData* pGraphState) { StartRendering(); SetGraphState(pGraphState); - if (pObject2Device) { - std::ostringstream buf; - buf << "mx Cm [" << pObject2Device->a << " " << pObject2Device->b << " " - << pObject2Device->c << " " << pObject2Device->d << " " - << pObject2Device->e << " " << pObject2Device->f << "]cm "; - m_pStream->WriteBlock(buf.str().c_str(), buf.tellp()); - } + + std::ostringstream buf; + buf << "mx Cm [" << pObject2Device->a << " " << pObject2Device->b << " " + << pObject2Device->c << " " << pObject2Device->d << " " + << pObject2Device->e << " " << pObject2Device->f << "]cm "; + m_pStream->WriteBlock(buf.str().c_str(), buf.tellp()); OutputPath(pPathData, nullptr); CFX_FloatRect rect = pPathData->GetBoundingBox(pGraphState->m_LineWidth, pGraphState->m_MiterLimit); m_ClipBox.Intersect(pObject2Device->TransformRect(rect).GetOuterRect()); - m_pStream->WriteString("strokepath W n"); - if (pObject2Device) - m_pStream->WriteString(" sm"); - m_pStream->WriteString("\n"); + m_pStream->WriteString("strokepath W n sm\n"); } bool CFX_PSRenderer::DrawPath(const CFX_PathData* pPathData, |