diff --git a/ompi/errhandler/errhandler.c b/ompi/errhandler/errhandler.c index 8beaf8a313..28d925dbf3 100644 --- a/ompi/errhandler/errhandler.c +++ b/ompi/errhandler/errhandler.c @@ -367,8 +367,6 @@ static void ompi_errhandler_construct(ompi_errhandler_t *new_errhandler) new_errhandler->eh_file_fn = NULL; new_errhandler->eh_fort_fn = NULL; - new_errhandler->eh_cxx_dispatch_fn = NULL; - memset (new_errhandler->eh_name, 0, MPI_MAX_OBJECT_NAME); } diff --git a/ompi/errhandler/errhandler.h b/ompi/errhandler/errhandler.h index a41446159a..b00296096a 100644 --- a/ompi/errhandler/errhandler.h +++ b/ompi/errhandler/errhandler.h @@ -71,7 +71,6 @@ typedef void (ompi_errhandler_generic_handler_fn_t)(void *, int *, ...); */ enum ompi_errhandler_lang_t { OMPI_ERRHANDLER_LANG_C, - OMPI_ERRHANDLER_LANG_CXX, OMPI_ERRHANDLER_LANG_FORTRAN }; typedef enum ompi_errhandler_lang_t ompi_errhandler_lang_t; @@ -89,17 +88,6 @@ enum ompi_errhandler_type_t { typedef enum ompi_errhandler_type_t ompi_errhandler_type_t; -/* - * Need to forward declare this for use in ompi_errhandle_cxx_dispatch_fn_t. - */ -struct ompi_errhandler_t; - -/** - * C++ invocation function signature - */ -typedef void (ompi_errhandler_cxx_dispatch_fn_t)(void *handle, int *err_code, - const char *message, ompi_errhandler_generic_handler_fn_t *fn); - /** * Back-end type for MPI_Errorhandler. */ @@ -123,14 +111,6 @@ struct ompi_errhandler_t { MPI_Win_errhandler_function *eh_win_fn; ompi_errhandler_fortran_handler_fn_t *eh_fort_fn; - /* Have separate callback for C++ errhandlers. This pointer is - initialized to NULL and will be set explicitly by the C++ - bindings for Create_errhandler. This function is invoked - when eh_lang==OMPI_ERRHANDLER_LANG_CXX so that the user's - callback function can be invoked with the right language - semantics. */ - ompi_errhandler_cxx_dispatch_fn_t *eh_cxx_dispatch_fn; - /* index in Fortran <-> C translation array */ int eh_f_to_c_index; }; diff --git a/ompi/errhandler/errhandler_invoke.c b/ompi/errhandler/errhandler_invoke.c index b1ff233e82..eeac8c9c30 100644 --- a/ompi/errhandler/errhandler_invoke.c +++ b/ompi/errhandler/errhandler_invoke.c @@ -74,11 +74,6 @@ int ompi_errhandler_invoke(ompi_errhandler_t *errhandler, void *mpi_object, errhandler->eh_comm_fn(&comm, &err_code, message, NULL); break; - case OMPI_ERRHANDLER_LANG_CXX: - errhandler->eh_cxx_dispatch_fn(&comm, &err_code, message, - (ompi_errhandler_generic_handler_fn_t *)errhandler->eh_comm_fn); - break; - case OMPI_ERRHANDLER_LANG_FORTRAN: fortran_handle = OMPI_INT_2_FINT(comm->c_f_to_c_index); errhandler->eh_fort_fn(&fortran_handle, &fortran_err_code); @@ -94,11 +89,6 @@ int ompi_errhandler_invoke(ompi_errhandler_t *errhandler, void *mpi_object, errhandler->eh_win_fn(&win, &err_code, message, NULL); break; - case OMPI_ERRHANDLER_LANG_CXX: - errhandler->eh_cxx_dispatch_fn(&win, &err_code, message, - (ompi_errhandler_generic_handler_fn_t *)errhandler->eh_win_fn); - break; - case OMPI_ERRHANDLER_LANG_FORTRAN: fortran_handle = OMPI_INT_2_FINT(win->w_f_to_c_index); errhandler->eh_fort_fn(&fortran_handle, &fortran_err_code); @@ -114,11 +104,6 @@ int ompi_errhandler_invoke(ompi_errhandler_t *errhandler, void *mpi_object, errhandler->eh_file_fn(&file, &err_code, message, NULL); break; - case OMPI_ERRHANDLER_LANG_CXX: - errhandler->eh_cxx_dispatch_fn(&file, &err_code, message, - (ompi_errhandler_generic_handler_fn_t *)errhandler->eh_file_fn); - break; - case OMPI_ERRHANDLER_LANG_FORTRAN: fortran_handle = OMPI_INT_2_FINT(file->f_f_to_c_index); errhandler->eh_fort_fn(&fortran_handle, &fortran_err_code);