Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove unused function
  • Loading branch information
picnixz committed Dec 13, 2024
commit 94800fdec384c3dc3d68cbd6125173b9f3ebc503
8 changes: 0 additions & 8 deletions Objects/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2709,14 +2709,6 @@ check_unicode_error_type(PyObject *self, const char *expect_type)
}


static inline PyUnicodeErrorObject *
as_unicode_error(PyObject *self, const char *expect_type)
{
int rc = check_unicode_error_type(self, expect_type);
return rc < 0 ? NULL : _PyUnicodeError_CAST(self);
}


/*
* Return the underlying (str) 'encoding' attribute of a Unicode Error object.
*
Expand Down