summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_box.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-06-01 16:10:23 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-01 16:10:23 +0000
commitc40e4cc7a1c795d462d7451f43befa48a479aeb3 (patch)
tree24fcadc4451aa403dc043896a92ae5be391605bc /xfa/fxfa/parser/cxfa_box.cpp
parentbd86f24ed091f4231e511a252fce09cbfeb72bb7 (diff)
downloadpdfium-c40e4cc7a1c795d462d7451f43befa48a479aeb3.tar.xz
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 <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_box.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_box.cpp4
1 files changed, 0 insertions, 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);