Skip to content

Commit e2fccfe

Browse files
authored
Merge pull request #7205 from radarhere/unused
Removed unused variables
2 parents 1fc8d82 + aeb6e99 commit e2fccfe

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

src/PIL/Image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ def _expand(self, xmargin, ymargin=None):
12541254
if ymargin is None:
12551255
ymargin = xmargin
12561256
self.load()
1257-
return self._new(self.im.expand(xmargin, ymargin, 0))
1257+
return self._new(self.im.expand(xmargin, ymargin))
12581258

12591259
def filter(self, filter):
12601260
"""

src/_imaging.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,12 +1027,11 @@ _crop(ImagingObject *self, PyObject *args) {
10271027
static PyObject *
10281028
_expand_image(ImagingObject *self, PyObject *args) {
10291029
int x, y;
1030-
int mode = 0;
1031-
if (!PyArg_ParseTuple(args, "ii|i", &x, &y, &mode)) {
1030+
if (!PyArg_ParseTuple(args, "ii", &x, &y)) {
10321031
return NULL;
10331032
}
10341033

1035-
return PyImagingNew(ImagingExpand(self->image, x, y, mode));
1034+
return PyImagingNew(ImagingExpand(self->image, x, y));
10361035
}
10371036

10381037
static PyObject *

src/libImaging/Filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ clip32(float in) {
4949
}
5050

5151
Imaging
52-
ImagingExpand(Imaging imIn, int xmargin, int ymargin, int mode) {
52+
ImagingExpand(Imaging imIn, int xmargin, int ymargin) {
5353
Imaging imOut;
5454
int x, y;
5555
ImagingSectionCookie cookie;

src/libImaging/Imaging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ ImagingConvertTransparent(Imaging im, const char *mode, int r, int g, int b);
290290
extern Imaging
291291
ImagingCrop(Imaging im, int x0, int y0, int x1, int y1);
292292
extern Imaging
293-
ImagingExpand(Imaging im, int x, int y, int mode);
293+
ImagingExpand(Imaging im, int x, int y);
294294
extern Imaging
295295
ImagingFill(Imaging im, const void *ink);
296296
extern int

src/libImaging/Storage.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
#include "Imaging.h"
3838
#include <string.h>
3939

40-
int ImagingNewCount = 0;
41-
4240
/* --------------------------------------------------------------------
4341
* Standard image object.
4442
*/

0 commit comments

Comments
 (0)