From 95dd8dad6b1b2ac31aca84afe677205c7ed47f7f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 30 Jan 2018 18:31:40 +0000 Subject: 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 Reviewed-by: dsinclair --- core/fxge/win32/cfx_psrenderer.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'core/fxge/win32/cfx_psrenderer.cpp') 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, -- cgit v1.2.3