Forgot to remove unused dot object

This commit is contained in:
Kovid Goyal 2019-05-01 17:14:05 +05:30
parent d324e776b5
commit 1473f4a83e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -203,7 +203,6 @@ tokenize_init(PyObject *self, PyObject *args) {
#endif #endif
#define END_ITER_CODE_PTS }} #define END_ITER_CODE_PTS }}
static PyObject *dot = NULL;
static PyObject *unicode_to_number(PyObject *src) { static PyObject *unicode_to_number(PyObject *src) {
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
@ -499,9 +498,6 @@ CALIBRE_MODINIT_FUNC inittokenizer(void) {
Py_INCREF(&tokenizer_TokenType); Py_INCREF(&tokenizer_TokenType);
PyModule_AddObject(mod, "Token", (PyObject *) &tokenizer_TokenType); PyModule_AddObject(mod, "Token", (PyObject *) &tokenizer_TokenType);
dot = PyUnicode_FromString(".");
if (dot == NULL) INITERROR;
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
return mod; return mod;
#endif #endif