Skip to content

Commit f848448

Browse files
committed
Delete some dead code
This code is not referred to anywhere; delete it. Signed-off-by: Jeff Squyres <jeff@squyres.com>
1 parent 9aab29a commit f848448

File tree

3 files changed

+2
-40
lines changed

3 files changed

+2
-40
lines changed

ompi/mca/coll/inter/coll_inter_allreduce.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2015-2017 Research Organization for Information Science
1515
* and Technology (RIST). All rights reserved.
16+
* Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
1617
* $COPYRIGHT$
1718
*
1819
* Additional copyrights may follow

ompi/mca/coll/libnbc/libdict/dict.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,6 @@ dict_malloc_func ompi_coll_libnbc_dict_malloc = malloc;
1717
dict_free_func ompi_coll_libnbc_dict_free = free;
1818

1919

20-
static inline dict_malloc_func
21-
dict_set_malloc(dict_malloc_func func)
22-
{
23-
dict_malloc_func old = ompi_coll_libnbc_dict_malloc;
24-
ompi_coll_libnbc_dict_malloc = func ? func : malloc;
25-
return old;
26-
}
27-
28-
static inline dict_free_func
29-
dict_set_free(dict_free_func func)
30-
{
31-
dict_free_func old = ompi_coll_libnbc_dict_free;
32-
ompi_coll_libnbc_dict_free = func ? func : free;
33-
return old;
34-
}
35-
36-
/*
37-
* In comparing, we cannot simply subtract because that might result in signed
38-
* overflow.
39-
*/
40-
static inline int
41-
dict_int_cmp(const void *k1, const void *k2)
42-
{
43-
const int *a = (int*)k1, *b = (int*)k2;
44-
45-
return (*a < *b) ? -1 : (*a > *b) ? +1 : 0;
46-
}
47-
4820
int
4921
ompi_coll_libnbc_dict_uint_cmp(const void *k1, const void *k2)
5022
{

ompi/mca/pml/cm/pml_cm_component.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
1616
* All Rights reserved.
1717
* Copyright (c) 2022 IBM Corporation. All rights reserved
18+
* Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
1819
* $COPYRIGHT$
1920
*
2021
* Additional copyrights may follow
@@ -64,18 +65,6 @@ mca_pml_base_component_2_1_0_t mca_pml_cm_component = {
6465
.pmlm_finalize = mca_pml_cm_component_fini,
6566
};
6667

67-
/* Array of send completion callback - one per send type
68-
* These are called internally by the library when the send
69-
* is completed from its perspective.
70-
*/
71-
static void (*send_completion_callbacks[MCA_PML_BASE_SEND_SIZE])
72-
(struct mca_mtl_request_t *mtl_request) =
73-
{ mca_pml_cm_send_request_completion,
74-
mca_pml_cm_send_request_completion,
75-
mca_pml_cm_send_request_completion,
76-
mca_pml_cm_send_request_completion,
77-
mca_pml_cm_send_request_completion } ;
78-
7968
static int
8069
mca_pml_cm_component_register(void)
8170
{

0 commit comments

Comments
 (0)