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

Skip to content

Commit b61e300

Browse files
committed
Merge pull request #2992 from jkseppan/tidyup-misc
Remove a few dead assignments
2 parents 85b3470 + fdbfa88 commit b61e300

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/_backend_agg.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ BufferRegion::to_string_argb(const Py::Tuple &args)
166166
throw Py::TypeError("Could not create memory for blit");
167167
}
168168

169-
pix = begin;
170169
for (i = 0; i < (size_t)height; ++i)
171170
{
172171
pix = begin + i * stride;

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)