Skip to content

Commit 982307b

Browse files
authored
bpo-39943: Remove unused self from find_nfc_index() (GH-18973)
1 parent 61cb3d0 commit 982307b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/unicodedata.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
623623
}
624624

625625
static int
626-
find_nfc_index(PyObject *self, struct reindex* nfc, Py_UCS4 code)
626+
find_nfc_index(const struct reindex* nfc, Py_UCS4 code)
627627
{
628628
unsigned int index;
629629
for (index = 0; nfc[index].start; index++) {
@@ -709,7 +709,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
709709
}
710710

711711
/* code is still input[i] here */
712-
f = find_nfc_index(self, nfc_first, code);
712+
f = find_nfc_index(nfc_first, code);
713713
if (f == -1) {
714714
output[o++] = code;
715715
i++;
@@ -732,7 +732,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
732732
continue;
733733
}
734734
}
735-
l = find_nfc_index(self, nfc_last, code1);
735+
l = find_nfc_index(nfc_last, code1);
736736
/* i1 cannot be combined with i. If i1
737737
is a starter, we don't need to look further.
738738
Otherwise, record the combining class. */
@@ -757,7 +757,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
757757
assert(cskipped < 20);
758758
skipped[cskipped++] = i1;
759759
i1++;
760-
f = find_nfc_index(self, nfc_first, output[o]);
760+
f = find_nfc_index(nfc_first, output[o]);
761761
if (f == -1)
762762
break;
763763
}

0 commit comments

Comments
 (0)