Skip to content

Commit 3a3db97

Browse files
shihai1991vstinner
authored andcommitted
bpo-27679: Remove set_bitfields() from _ctypes_test (GH-14648)
1 parent 73ea546 commit 3a3db97

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Modules/_ctypes/_ctypes_test.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -425,30 +425,6 @@ struct BITS {
425425
#endif
426426
};
427427

428-
EXPORT(void) set_bitfields(struct BITS *bits, char name, int value)
429-
{
430-
switch (name) {
431-
case 'A': bits->A = value; break;
432-
case 'B': bits->B = value; break;
433-
case 'C': bits->C = value; break;
434-
case 'D': bits->D = value; break;
435-
case 'E': bits->E = value; break;
436-
case 'F': bits->F = value; break;
437-
case 'G': bits->G = value; break;
438-
case 'H': bits->H = value; break;
439-
case 'I': bits->I = value; break;
440-
#ifdef SIGNED_SHORT_BITFIELDS
441-
case 'M': bits->M = value; break;
442-
case 'N': bits->N = value; break;
443-
case 'O': bits->O = value; break;
444-
case 'P': bits->P = value; break;
445-
case 'Q': bits->Q = value; break;
446-
case 'R': bits->R = value; break;
447-
case 'S': bits->S = value; break;
448-
#endif
449-
}
450-
}
451-
452428
EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
453429
{
454430
switch (name) {

0 commit comments

Comments
 (0)