Skip to content

Commit 8bc5a77

Browse files
committed
remove unused functions mca_base_source_set_time_source, mca_base_component_event_register, mca_base_component_source_register
Signed-off-by: Kingshuk Haldar <kingshuk.haldar@hlrs.de>
1 parent a78f760 commit 8bc5a77

File tree

4 files changed

+13
-28
lines changed

4 files changed

+13
-28
lines changed

opal/mca/base/mca_base_event.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Copyright (c) 2017 IBM Corporation. All rights reserved.
1111
* Copyright (c) 2018-2019 Triad National Security, LLC. All rights
1212
* reserved.
13+
* Copyright (c) 2025 High Performance Computing Center Stuttgart,
14+
* University of Stuttgart. All rights reserved.
1315
* $COPYRIGHT$
1416
*
1517
* Additional copyrights may follow
@@ -290,17 +292,6 @@ int mca_base_event_register (const char *project, const char *framework, const c
290292
return OPAL_SUCCESS;
291293
}
292294

293-
int mca_base_component_event_register (const mca_base_component_t *component, const char *name,
294-
const char *description, mca_base_var_info_lvl_t verbosity, opal_datatype_t **datatypes,
295-
unsigned long *offsets, size_t num_datatypes, mca_base_var_enum_t *enumerator, int bind,
296-
int source, uint32_t flags, mca_base_notify_fn_t notify, void *ctx, mca_base_event_t **event_out)
297-
{
298-
/* invalidate this variable if the component's group is deregistered */
299-
return mca_base_event_register (component->mca_project_name, component->mca_type_name, component->mca_component_name,
300-
name, description, verbosity, datatypes, offsets, num_datatypes, enumerator, bind,
301-
source, flags | MCA_BASE_EVENT_FLAG_IWG, notify, ctx, event_out);
302-
}
303-
304295
int mca_base_component_event_register_list (const mca_base_component_t *component, mca_base_event_list_item_t *list, int count)
305296
{
306297
mca_base_var_enum_t *new_enum = NULL;

opal/mca/base/mca_base_event.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* reserved.
55
* Copyright (c) 2018-2019 Triad National Security, LLC. All rights
66
* reserved.
7+
* Copyright (c) 2025 High Performance Computing Center Stuttgart,
8+
* University of Stuttgart. All rights reserved.
79
*
810
* Additional copyrights may follow
911
*
@@ -175,11 +177,6 @@ OPAL_DECLSPEC int mca_base_event_register (const char *project, const char *fram
175177
unsigned long *offsets, size_t num_datatypes, mca_base_var_enum_t *enumerator, int bind,
176178
int source, uint32_t flags, mca_base_notify_fn_t notify, void *ctx, mca_base_event_t **event_out);
177179

178-
OPAL_DECLSPEC int mca_base_component_event_register (const mca_base_component_t *component, const char *name,
179-
const char *description, mca_base_var_info_lvl_t verbosity, opal_datatype_t **datatypes,
180-
unsigned long *offsets, size_t num_datatypes, mca_base_var_enum_t *enumerator, int bind,
181-
int source, uint32_t flags, mca_base_notify_fn_t notify, void *ctx, mca_base_event_t **event_out);
182-
183180
OPAL_DECLSPEC int mca_base_component_event_register_list (const mca_base_component_t *component, mca_base_event_list_item_t *list, int count);
184181

185182
OPAL_DECLSPEC void MCA_BASE_EVENT_RAISE_internal (mca_base_event_t *event, mca_base_cb_safety_t cb_safety, void *obj, mca_base_source_t *source,

opal/mca/base/mca_base_source.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* of Tennessee Research Foundation. All rights
99
* reserved.
1010
* Copyright (c) 2017 IBM Corporation. All rights reserved.
11+
* Copyright (c) 2025 High Performance Computing Center Stuttgart,
12+
* University of Stuttgart. All rights reserved.
1113
* $COPYRIGHT$
1214
*
1315
* Additional copyrights may follow
@@ -123,6 +125,10 @@ mca_base_source_t *mca_base_source_get (int source_index)
123125
return ret;
124126
}
125127

128+
#if 0
129+
/* Due to perceived possiblity of timer-source change runtime,
130+
* keeping the code, but disabling it.
131+
*/
126132
int mca_base_source_set_time_source (int source_index, mca_base_source_time_fn_t time_source, uint64_t time_ticks)
127133
{
128134
/* Uses source lock/unlock */
@@ -146,6 +152,7 @@ int mca_base_source_set_time_source (int source_index, mca_base_source_time_fn_t
146152

147153
return OPAL_SUCCESS;
148154
}
155+
#endif
149156

150157
/***************************************************************************************************/
151158

@@ -251,13 +258,6 @@ int mca_base_source_register (const char *project, const char *framework, const
251258

252259
return OPAL_SUCCESS;
253260
}
254-
int mca_base_component_source_register (const mca_base_component_t *component, const char *name, const char *description, bool ordered,
255-
mca_base_source_time_fn_t source_time, uint64_t source_ticks)
256-
{
257-
/* invalidate this variable if the component's group is deregistered */
258-
return mca_base_source_register (component->mca_project_name, component->mca_type_name, component->mca_component_name,
259-
name, description, ordered, source_time, source_ticks);
260-
}
261261

262262
/* mca_base_source_t class */
263263
static void mca_base_source_constructor (mca_base_source_t *source)

opal/mca/base/mca_base_source.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (c) 2018 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2025 High Performance Computing Center Stuttgart,
6+
* University of Stuttgart. All rights reserved.
57
*
68
* Additional copyrights may follow
79
*
@@ -58,11 +60,6 @@ OPAL_DECLSPEC int mca_base_source_dump(int index, char ***out, mca_base_var_dump
5860
OPAL_DECLSPEC int mca_base_source_register (const char *project, const char *framework, const char *component, const char *name,
5961
const char *description, bool ordered, mca_base_source_time_fn_t source_time, uint64_t source_ticks);
6062

61-
OPAL_DECLSPEC int mca_base_component_source_register (const mca_base_component_t *component, const char *name, const char *description,
62-
bool ordered, mca_base_source_time_fn_t source_time, uint64_t source_ticks);
63-
64-
OPAL_DECLSPEC int mca_base_source_set_time_source (int source_index, mca_base_source_time_fn_t time_source, uint64_t time_ticks);
65-
6663
OPAL_DECLSPEC mca_base_source_t *mca_base_source_get (int source_index);
6764

6865
#endif /* !defined(MCA_BASE_SOURCE_H) */

0 commit comments

Comments
 (0)