From 791f31d6885e8760534af72a6581351b4e6fb982 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Fri, 4 Jan 2013 20:50:25 +0000 Subject: [PATCH] Remove the unnecessary ompi_modex_recv_pointer function. This commit was SVN r27744. --- ompi/runtime/ompi_module_exchange.c | 22 ---------------------- ompi/runtime/ompi_module_exchange.h | 5 ----- 2 files changed, 27 deletions(-) diff --git a/ompi/runtime/ompi_module_exchange.c b/ompi/runtime/ompi_module_exchange.c index ed872ab0d0..068fb67b46 100644 --- a/ompi/runtime/ompi_module_exchange.c +++ b/ompi/runtime/ompi_module_exchange.c @@ -90,28 +90,6 @@ ompi_modex_recv(const mca_base_component_t *component, return rc; } -/* return a pointer to the data, but don't create a new copy of it */ -int ompi_modex_recv_pointer(const mca_base_component_t *component, - const ompi_proc_t *proc, - void **buffer, opal_data_type_t type) -{ - int rc; - char *name = mca_base_component_to_string(component); - - /* set defaults */ - *buffer = NULL; - - if (NULL == name) { - return OMPI_ERR_OUT_OF_RESOURCE; - } - - /* the fetch_poointer API returns a pointer to the data */ - rc = orte_db.fetch_pointer(&proc->proc_name, name, buffer, type); - free(name); - - return rc; -} - int ompi_modex_send_string(const char* key, const void *buffer, size_t size) diff --git a/ompi/runtime/ompi_module_exchange.h b/ompi/runtime/ompi_module_exchange.h index 04016c3ad4..6a61bef523 100644 --- a/ompi/runtime/ompi_module_exchange.h +++ b/ompi/runtime/ompi_module_exchange.h @@ -191,11 +191,6 @@ OMPI_DECLSPEC int ompi_modex_recv(const mca_base_component_t *dest_component, const ompi_proc_t *source_proc, void **buffer, size_t *size); - -OMPI_DECLSPEC int ompi_modex_recv_pointer(const mca_base_component_t *component, - const ompi_proc_t *proc, - void **buffer, opal_data_type_t type); - /** * Receive a buffer from a given peer *