mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Remove duplicate code
This commit is contained in:
parent
c52c3ae3e2
commit
c1adae6f70
|
@ -1147,10 +1147,6 @@ cms_profile_getattr_media_white_point_temperature(CmsProfileObject *self, void*
|
|||
}
|
||||
|
||||
XYZ = (cmsCIEXYZ*) cmsReadTag(self->profile, info);
|
||||
if (!XYZ) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
if (XYZ == NULL || XYZ->X == 0) {
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
|
@ -1499,8 +1495,6 @@ setup_module(PyObject* m) {
|
|||
PyObject *v;
|
||||
int vn;
|
||||
|
||||
d = PyModule_GetDict(m);
|
||||
|
||||
CmsProfile_Type.tp_new = PyType_GenericNew;
|
||||
|
||||
/* Ready object types */
|
||||
|
|
Loading…
Reference in New Issue
Block a user