summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-03-17 16:38:12 (GMT)
committerGitHub <noreply@github.com>2020-03-17 16:38:12 (GMT)
commit982307b9cceef36e30ac43b13032d68c3b921adc (patch)
treedcabf837f20f7fc96c9a751eee068816f35e69a9 /Modules
parent61cb3d02b83e746e59bb1351a0865e3b8714b2d6 (diff)
downloadcpython-982307b9cceef36e30ac43b13032d68c3b921adc.zip
cpython-982307b9cceef36e30ac43b13032d68c3b921adc.tar.gz
cpython-982307b9cceef36e30ac43b13032d68c3b921adc.tar.bz2
bpo-39943: Remove unused self from find_nfc_index() (GH-18973)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/unicodedata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index d06ba6c..1a9e1c0 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -623,7 +623,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
}
static int
-find_nfc_index(PyObject *self, struct reindex* nfc, Py_UCS4 code)
+find_nfc_index(const struct reindex* nfc, Py_UCS4 code)
{
unsigned int index;
for (index = 0; nfc[index].start; index++) {
@@ -709,7 +709,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
}
/* code is still input[i] here */
- f = find_nfc_index(self, nfc_first, code);
+ f = find_nfc_index(nfc_first, code);
if (f == -1) {
output[o++] = code;
i++;
@@ -732,7 +732,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
continue;
}
}
- l = find_nfc_index(self, nfc_last, code1);
+ l = find_nfc_index(nfc_last, code1);
/* i1 cannot be combined with i. If i1
is a starter, we don't need to look further.
Otherwise, record the combining class. */
@@ -757,7 +757,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
assert(cskipped < 20);
skipped[cskipped++] = i1;
i1++;
- f = find_nfc_index(self, nfc_first, output[o]);
+ f = find_nfc_index(nfc_first, output[o]);
if (f == -1)
break;
}