summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-01-09 00:17:14 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-09 00:17:14 +0100
commit5836c7063b8eccf23e3f0aaa9707db9c4307b745 (patch)
tree8b111d5f325529fe15a9e5d90a26b1798f5cb712 /ext/gd
parent3c6a230b7124d4a1176ebd3e2981b8c23c8a67c1 (diff)
downloadphp-git-5836c7063b8eccf23e3f0aaa9707db9c4307b745.tar.gz
Avoid superfluous assignments
These values are already set via the initializers.
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/libgd/gd_matrix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/gd/libgd/gd_matrix.c b/ext/gd/libgd/gd_matrix.c
index d2dfbd2d16..ec40674833 100644
--- a/ext/gd/libgd/gd_matrix.c
+++ b/ext/gd/libgd/gd_matrix.c
@@ -29,8 +29,6 @@ int gdAffineApplyToPointF (gdPointFPtr dst, const gdPointFPtr src,
{
double x = src->x;
double y = src->y;
- x = src->x;
- y = src->y;
dst->x = x * affine[0] + y * affine[2] + affine[4];
dst->y = x * affine[1] + y * affine[3] + affine[5];
return GD_TRUE;