From c40e4cc7a1c795d462d7451f43befa48a479aeb3 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 1 Jun 2018 16:10:23 +0000 Subject: Remove ununused startAngle and sweepAngle variables Neither of these local values ever get read after calculating them. Issue found with Clang Static Analyzer. Change-Id: Iffa578f1d5e303c65a881bcd372a9144a11edd3b Reviewed-on: https://pdfium-review.googlesource.com/33532 Reviewed-by: Henrique Nakashima Commit-Queue: Ryan Harrison --- xfa/fxfa/parser/cxfa_box.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xfa/fxfa/parser/cxfa_box.cpp b/xfa/fxfa/parser/cxfa_box.cpp index 673b77dfd7..16037d7943 100644 --- a/xfa/fxfa/parser/cxfa_box.cpp +++ b/xfa/fxfa/parser/cxfa_box.cpp @@ -324,10 +324,6 @@ void CXFA_Box::StrokeArcOrRounded(CXFA_Graphics* pGS, rtWidget.width = a + a; rtWidget.height = b + b; - float startAngle = 0, sweepAngle = 360; - startAngle = startAngle * FX_PI / 180.0f; - sweepAngle = -sweepAngle * FX_PI / 180.0f; - CXFA_GEPath arcPath; arcPath.AddArc(rtWidget.TopLeft(), rtWidget.Size(), 3.0f * FX_PI / 4.0f, FX_PI); -- cgit v1.2.3