diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-01-06 08:53:50 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-01-06 08:54:57 +0100 |
commit | d83f89f076612a742433fed64f7d5d368435173e (patch) | |
tree | f1ea41dc7730f57be8fbcba4a0888359f80f3ea9 /ext/gd | |
parent | 019e8d438c3cdbae548a8d13ee13a71b42e7306e (diff) | |
download | php-git-d83f89f076612a742433fed64f7d5d368435173e.tar.gz |
Remove useless else branch
Passing `NULL` as `gdTransformAffineGetImage()`'s `src_area` is fine,
but in this case there's no need to calculate the `rect`, and since
`pRect` has already been initialized to `NULL`, we can remove the whole
else branch.
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/gd.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 8791940089..68c5f4fe31 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3936,12 +3936,6 @@ PHP_FUNCTION(imageaffine) RETURN_THROWS(); } pRect = ▭ - } else { - rect.x = -1; - rect.y = -1; - rect.width = gdImageSX(src); - rect.height = gdImageSY(src); - pRect = NULL; } if (gdTransformAffineGetImage(&dst, src, pRect, affine) != GD_TRUE) { |