Remove unused C scm_program_source.
authorAndy Wingo <wingo@pobox.com>
Tue, 19 Nov 2013 18:19:55 +0000 (19:19 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 19 Nov 2013 18:36:38 +0000 (19:36 +0100)
* libguile/programs.c (scm_program_source): Remove; not called.  (The
  definition is in Scheme.)

libguile/programs.c
libguile/programs.h

index 83cceb4..9ba3619 100644 (file)
@@ -181,25 +181,6 @@ scm_find_source_for_addr (SCM ip)
   return scm_call_1 (scm_variable_ref (source_for_addr), ip);
 }
 
-SCM
-scm_program_source (SCM program, SCM ip, SCM sources)
-{
-  static SCM program_source = SCM_BOOL_F;
-
-  if (scm_is_false (program_source)) {
-    if (!scm_module_system_booted_p)
-      return SCM_BOOL_F;
-
-    program_source =
-      scm_c_private_variable ("system vm program", "program-source");
-  }
-
-  if (SCM_UNBNDP (sources))
-    return scm_call_2 (scm_variable_ref (program_source), program, ip);
-  else
-    return scm_call_3 (scm_variable_ref (program_source), program, ip, sources);
-}
-    
 SCM_DEFINE (scm_program_num_free_variables, "program-num-free-variables", 1, 0, 0,
            (SCM program),
            "")
index eed02ba..096c2c0 100644 (file)
@@ -67,7 +67,6 @@ SCM_INTERNAL SCM scm_i_program_properties (SCM program);
 
 SCM_INTERNAL SCM scm_find_source_for_addr (SCM ip);
 
-SCM_API SCM scm_program_source (SCM program, SCM ip, SCM sources);
 SCM_API SCM scm_program_num_free_variables (SCM program);
 SCM_API SCM scm_program_free_variable_ref (SCM program, SCM i);
 SCM_API SCM scm_program_free_variable_set_x (SCM program, SCM i, SCM x);