Skip to content

Commit 6a54c67

Browse files
authored
bpo-31979: Remove unused align_maxchar() function (#4527)
1 parent b919795 commit 6a54c67

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Objects/unicodeobject.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,19 +2171,6 @@ kind_maxchar_limit(unsigned int kind)
21712171
}
21722172
}
21732173

2174-
static inline Py_UCS4
2175-
align_maxchar(Py_UCS4 maxchar)
2176-
{
2177-
if (maxchar <= 127)
2178-
return 127;
2179-
else if (maxchar <= 255)
2180-
return 255;
2181-
else if (maxchar <= 65535)
2182-
return 65535;
2183-
else
2184-
return MAX_UNICODE;
2185-
}
2186-
21872174
static PyObject*
21882175
_PyUnicode_FromUCS1(const Py_UCS1* u, Py_ssize_t size)
21892176
{

0 commit comments

Comments
 (0)