Skip to content

Commit de4661d

Browse files
committed
DPL: drop unused o2_signpost_id_make_with_pointer method
Probably old remaining from a previous implementation.
1 parent 34d0581 commit de4661d

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Framework/Foundation/include/Framework/Signpost.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ bool _o2_lock_free_stack_push(_o2_lock_free_stack& stack, const int& value, bool
218218
bool _o2_lock_free_stack_pop(_o2_lock_free_stack& stack, int& value, bool spin = false);
219219
//_o2_signpost_id_t _o2_signpost_id_generate_local(_o2_log_t* log);
220220
//_o2_signpost_id_t _o2_signpost_id_make_with_pointer(_o2_log_t* log, void* pointer);
221-
_o2_signpost_index_t o2_signpost_id_make_with_pointer(_o2_log_t* log, void* pointer);
222221
void* _o2_log_create(char const* name, int stacktrace);
223222
void _o2_signpost_event_emit(_o2_log_t* log, _o2_signpost_id_t id, char const* name, char const* const format, ...);
224223
void _o2_signpost_interval_begin(_o2_log_t* log, _o2_signpost_id_t id, char const* name, char const* const format, ...);
@@ -246,14 +245,6 @@ inline _o2_signpost_id_t _o2_signpost_id_make_with_pointer(_o2_log_t* log, void*
246245
return uniqueId;
247246
}
248247

249-
inline _o2_signpost_index_t o2_signpost_id_make_with_pointer(_o2_log_t* log, void* pointer)
250-
{
251-
_o2_signpost_index_t signpost_index;
252-
_o2_lock_free_stack_pop(log->slots, signpost_index, true);
253-
log->ids[signpost_index].id = (int64_t)pointer;
254-
return signpost_index;
255-
}
256-
257248
// Implementation start here. Include this file with O2_SIGNPOST_IMPLEMENTATION defined in one file of your
258249
// project.
259250
#ifdef O2_SIGNPOST_IMPLEMENTATION

0 commit comments

Comments
 (0)