Remove Python 2.4 and 2.5 support
[deliverable/binutils-gdb.git] / gdb / python / py-inferior.c
index ba769b31c735f2230da156875c12d9151fa0fb1e..72fbf6d90b93f07ecff987e9d174d0cc15a10408 100644 (file)
@@ -1002,20 +1002,11 @@ static PyBufferProcs buffer_procs =
 
 #else
 
-/* Python doesn't provide a decent way to get compatibility here.  */
-#if HAVE_LIBPYTHON2_4
-#define CHARBUFFERPROC_NAME getcharbufferproc
-#else
-#define CHARBUFFERPROC_NAME charbufferproc
-#endif
-
 static PyBufferProcs buffer_procs = {
   get_read_buffer,
   get_write_buffer,
   get_seg_count,
-  /* The cast here works around a difference between Python 2.4 and
-     Python 2.5.  */
-  (CHARBUFFERPROC_NAME) get_char_buffer
+  get_char_buffer
 };
 #endif /* IS_PY3K */
 
This page took 0.033335 seconds and 4 git commands to generate.