mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Remove unrunnable code: ImagingDrawWideLine is only called (in _imaging.c) when (width <= 1) is false
This commit is contained in:
parent
ae9181f0a4
commit
2968313bb6
|
@ -605,11 +605,6 @@ ImagingDrawWideLine(Imaging im, int x0, int y0, int x1, int y1,
|
|||
|
||||
DRAWINIT();
|
||||
|
||||
if (width <= 1) {
|
||||
draw->line(im, x0, y0, x1, y1, ink);
|
||||
return 0;
|
||||
}
|
||||
|
||||
dx = x1-x0;
|
||||
dy = y1-y0;
|
||||
if (dx == 0 && dy == 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user