@@ -439,24 +439,6 @@ JL_DLLEXPORT jl_value_t *jl_stderr_obj(void)
439439 return stderr_obj ;
440440}
441441
442- static jl_function_t * jl_show_gf = NULL ;
443-
444- JL_DLLEXPORT void jl_show (jl_value_t * stream , jl_value_t * v )
445- {
446- if (jl_base_module ) {
447- if (jl_show_gf == NULL ) {
448- jl_show_gf = (jl_function_t * )jl_get_global (jl_base_module , jl_symbol ("show" ));
449- }
450- if (jl_show_gf == NULL || stream == NULL ) {
451- jl_printf (JL_STDERR , " could not show value of type %s" ,
452- jl_symbol_name (((jl_datatype_t * )jl_typeof (v ))-> name -> name ));
453- return ;
454- }
455- jl_value_t * args [3 ] = {jl_show_gf ,stream ,v };
456- jl_apply (args , 3 );
457- }
458- }
459-
460442// toys for debugging ---------------------------------------------------------
461443
462444static size_t jl_show_svec (JL_STREAM * out , jl_svec_t * t , const char * head , const char * opn , const char * cls )
@@ -868,8 +850,7 @@ static size_t jl_static_show_x_(JL_STREAM *out, jl_value_t *v, jl_datatype_t *vt
868850
869851static size_t jl_static_show_x (JL_STREAM * out , jl_value_t * v , struct recur_list * depth )
870852{
871- // mimic jl_show, but never calling a julia method and
872- // never allocate through julia gc
853+ // show values without calling a julia method or allocating through the GC
873854 if (v == NULL ) {
874855 return jl_printf (out , "#<null>" );
875856 }
0 commit comments