Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ PyImagingNew(Imaging imOut) {
return NULL;
}

#ifdef VERBOSE
printf("imaging %p allocated\n", imagep);
#endif

imagep->image = imOut;
imagep->access = ImagingAccessNew(imOut);

Expand All @@ -177,10 +173,6 @@ PyImagingNew(Imaging imOut) {

static void
_dealloc(ImagingObject *imagep) {
#ifdef VERBOSE
printf("imaging %p deleted\n", imagep);
#endif

if (imagep->access) {
ImagingAccessDelete(imagep->image, imagep->access);
}
Expand Down
19 changes: 2 additions & 17 deletions src/libImaging/Mode.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#include "Mode.h"
#include <string.h>

#ifdef NDEBUG
#include <stdio.h>
#include <stdlib.h>
#endif

const ModeData MODES[] = {
[IMAGING_MODE_UNKNOWN] = {""},

Expand All @@ -28,12 +23,7 @@ findModeID(const char *const name) {
return IMAGING_MODE_UNKNOWN;
}
for (size_t i = 0; i < sizeof(MODES) / sizeof(*MODES); i++) {
#ifdef NDEBUG
if (MODES[i].name == NULL) {
fprintf(stderr, "Mode ID %zu is not defined.\n", (size_t)i);
} else
#endif
if (strcmp(MODES[i].name, name) == 0) {
if (strcmp(MODES[i].name, name) == 0) {
return (ModeID)i;
}
}
Expand Down Expand Up @@ -230,12 +220,7 @@ findRawModeID(const char *const name) {
return IMAGING_RAWMODE_UNKNOWN;
}
for (size_t i = 0; i < sizeof(RAWMODES) / sizeof(*RAWMODES); i++) {
#ifdef NDEBUG
if (RAWMODES[i].name == NULL) {
fprintf(stderr, "Rawmode ID %zu is not defined.\n", (size_t)i);
} else
#endif
if (strcmp(RAWMODES[i].name, name) == 0) {
if (strcmp(RAWMODES[i].name, name) == 0) {
return (RawModeID)i;
}
}
Expand Down
Loading
Loading