Skip to content

Commit cdb9a42

Browse files
committed
Remove unreachable code from PY32
That entire section is only for PY32 compatiblity
1 parent c95b8f3 commit cdb9a42

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/runtime/runtime.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,27 +1563,11 @@ internal static IntPtr PyString_FromStringAndSize(string value, int length)
15631563
}
15641564
}
15651565

1566-
#if (PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36)
15671566
[DllImport(Runtime.dll, CallingConvention = CallingConvention.Cdecl,
15681567
ExactSpelling = true, CharSet = CharSet.Unicode)]
15691568
internal unsafe static extern IntPtr
15701569
PyUnicode_FromStringAndSize(IntPtr value, int size);
1571-
#elif (UCS2)
1572-
[DllImport(Runtime.dll, CallingConvention = CallingConvention.Cdecl,
1573-
EntryPoint = "PyUnicodeUCS2_FromStringAndSize",
1574-
ExactSpelling = true, CharSet = CharSet.Unicode)]
1575-
internal unsafe static extern IntPtr
1576-
PyUnicode_FromStringAndSize(IntPtr value, int size);
1577-
#else
1578-
[DllImport(Runtime.dll, CallingConvention = CallingConvention.Cdecl,
1579-
EntryPoint = "PyUnicodeUCS4_FromStringAndSize",
1580-
ExactSpelling = true, CharSet = CharSet.Ansi)]
1581-
internal unsafe static extern IntPtr
1582-
PyUnicode_FromStringAndSize(IntPtr value, int size);
1583-
#endif
1584-
1585-
#else // Python2x
1586-
1570+
#elif PYTHON2
15871571
[DllImport(Runtime.dll, CallingConvention = CallingConvention.Cdecl,
15881572
ExactSpelling = true, CharSet = CharSet.Ansi)]
15891573
internal unsafe static extern IntPtr

0 commit comments

Comments
 (0)