Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdbfa88

Browse files
committed
Remove dead assignments in _image.cpp
1 parent 2f41665 commit fdbfa88

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/_image.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,6 @@ _image_module::fromarray(const Py::Tuple& args)
991991
{
992992
throw Py::ValueError("Illegal array rank; must be rank; must 2 or 3");
993993
}
994-
buffer -= NUMBYTES;
995994

996995
return Py::asObject(imo);
997996
}
@@ -1099,7 +1098,6 @@ _image_module::fromarray2(const Py::Tuple& args)
10991098
{
11001099
throw Py::ValueError("Illegal array rank; must be rank; must 2 or 3");
11011100
}
1102-
buffer -= NUMBYTES;
11031101

11041102
return Py::asObject(imo);
11051103
}
@@ -1681,7 +1679,6 @@ _image_module::pcolor(const Py::Tuple& args)
16811679
unsigned char *inposition;
16821680
size_t inrowsize(nx*4);
16831681
size_t rowsize(cols*4);
1684-
rowstart = rowstarts;
16851682
agg::int8u * position = buffer;
16861683
agg::int8u * oldposition = NULL;
16871684
start = reinterpret_cast<unsigned char*>(d->data);

0 commit comments

Comments
 (0)