Skip to content

Commit 47fac93

Browse files
committed
Stop importing unused SafeUUID members
1 parent d657777 commit 47fac93

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Modules/_uuidmodule.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ typedef struct {
165165
PyTypeObject *UuidType;
166166

167167
PyObject *safe_uuid;
168-
PyObject *safe_uuid_safe;
169-
PyObject *safe_uuid_unsafe;
170168
PyObject *safe_uuid_unknown;
171169

172170
PyObject *uint128_max;
@@ -1674,8 +1672,6 @@ module_traverse(PyObject *mod, visitproc visit, void *arg)
16741672
uuid_state *state = get_uuid_state(mod);
16751673
Py_VISIT(state->UuidType);
16761674
Py_VISIT(state->safe_uuid);
1677-
Py_VISIT(state->safe_uuid_safe);
1678-
Py_VISIT(state->safe_uuid_unsafe);
16791675
Py_VISIT(state->safe_uuid_unknown);
16801676
Py_VISIT(state->uint128_max);
16811677
Py_VISIT(state->reserved_ncs);
@@ -1695,8 +1691,6 @@ module_clear(PyObject *mod)
16951691

16961692
Py_CLEAR(state->UuidType);
16971693
Py_CLEAR(state->safe_uuid);
1698-
Py_CLEAR(state->safe_uuid_safe);
1699-
Py_CLEAR(state->safe_uuid_unsafe);
17001694
Py_CLEAR(state->safe_uuid_unknown);
17011695
Py_CLEAR(state->uint128_max);
17021696
Py_CLEAR(state->reserved_ncs);
@@ -1781,14 +1775,6 @@ uuid_exec(PyObject *module)
17811775
if (safe_uuid == NULL) {
17821776
goto fail;
17831777
}
1784-
state->safe_uuid_safe = PyObject_GetAttrString(safe_uuid, "safe");
1785-
if (state->safe_uuid_safe == NULL) {
1786-
goto fail;
1787-
}
1788-
state->safe_uuid_unsafe = PyObject_GetAttrString(safe_uuid, "unsafe");
1789-
if (state->safe_uuid_unsafe == NULL) {
1790-
goto fail;
1791-
}
17921778
state->safe_uuid_unknown = PyObject_GetAttrString(safe_uuid, "unknown");
17931779
if (state->safe_uuid_unknown == NULL) {
17941780
goto fail;

0 commit comments

Comments
 (0)