@@ -41,7 +41,6 @@ static VALUE _native_enforce_success(DDTRACE_UNUSED VALUE _self, VALUE syserr_er
4141static void * trigger_enforce_success (void * trigger_args );
4242static VALUE _native_malloc_stats (DDTRACE_UNUSED VALUE _self );
4343static VALUE _native_safe_object_info (DDTRACE_UNUSED VALUE _self , VALUE obj );
44- static VALUE _native_raise_native_error_with_invalid_class (DDTRACE_UNUSED VALUE _self , VALUE invalid_exception_class , VALUE message , VALUE telemetry_message );
4544
4645void DDTRACE_EXPORT Init_datadog_profiling_native_extension (void ) {
4746 // The profiler still has a lot of limitations around being used in Ractors BUT for now we're choosing to take care of those
@@ -90,7 +89,6 @@ void DDTRACE_EXPORT Init_datadog_profiling_native_extension(void) {
9089 rb_define_singleton_method (testing_module , "_native_enforce_success" , _native_enforce_success , 2 );
9190 rb_define_singleton_method (testing_module , "_native_malloc_stats" , _native_malloc_stats , 0 );
9291 rb_define_singleton_method (testing_module , "_native_safe_object_info" , _native_safe_object_info , 1 );
93- rb_define_singleton_method (testing_module , "_native_raise_native_error_with_invalid_class" , _native_raise_native_error_with_invalid_class , 3 );
9492}
9593
9694static VALUE native_working_p (DDTRACE_UNUSED VALUE _self ) {
@@ -289,13 +287,3 @@ static VALUE _native_malloc_stats(DDTRACE_UNUSED VALUE _self) {
289287static VALUE _native_safe_object_info (DDTRACE_UNUSED VALUE _self , VALUE obj ) {
290288 return rb_str_new_cstr (safe_object_info (obj ));
291289}
292-
293- // Allows testing raise_error with an unrecognized exception class
294- // TODO: REMOVE THIS UNUSED METHOD
295- static VALUE _native_raise_native_error_with_invalid_class (DDTRACE_UNUSED VALUE _self , VALUE invalid_exception_class , VALUE message , VALUE telemetry_message ) {
296- ENFORCE_TYPE (message , T_STRING );
297- ENFORCE_TYPE (telemetry_message , T_STRING );
298-
299- VALUE exception = rb_exc_new_cstr (invalid_exception_class , StringValueCStr (message ));
300- private_raise_exception (exception , StringValueCStr (message ), StringValueCStr (telemetry_message ));
301- }
0 commit comments