Remove deprecated semi-public memoizers.
authorLudovic Courtès <ludo@gnu.org>
Thu, 13 Aug 2009 21:36:46 +0000 (23:36 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 13 Aug 2009 21:36:46 +0000 (23:36 +0200)
* libguile/eval.c (scm_m_expand_body, scm_macroexp, scm_unmemocar):
  Remove.
  (scm_m_undefine): Make `static'.

* libguile/eval.h (scm_m_undefine, scm_m_expand_body, scm_unmemocar,
  scm_macroexp): Remove declarations.

libguile/eval.c
libguile/eval.h

index 4640ea5..6a6a0ce 100644 (file)
@@ -2555,20 +2555,11 @@ scm_i_unmemocopy_body (SCM forms, SCM env)
 
 #if (SCM_ENABLE_DEPRECATED == 1)
 
-/* Deprecated in guile 1.7.0 on 2003-11-09.  */
-SCM
-scm_m_expand_body (SCM exprs, SCM env)
-{
-  scm_c_issue_deprecation_warning 
-    ("`scm_m_expand_body' is deprecated.");
-  m_expand_body (exprs, env);
-  return exprs;
-}
-
+static SCM scm_m_undefine (SCM expr, SCM env);
 
 SCM_SYNTAX (s_undefine, "undefine", scm_makacro, scm_m_undefine);
 
-SCM
+static SCM
 scm_m_undefine (SCM expr, SCM env)
 {
   SCM variable;
@@ -2592,55 +2583,10 @@ scm_m_undefine (SCM expr, SCM env)
   return SCM_UNSPECIFIED;
 }
 
-SCM
-scm_macroexp (SCM x, SCM env)
-{
-  scm_c_issue_deprecation_warning
-    ("`scm_macroexp' is deprecated.");
-  return macroexp (x, env);
-}
-
-#endif
-
-
-#if (SCM_ENABLE_DEPRECATED == 1)
-
-SCM
-scm_unmemocar (SCM form, SCM env)
-{
-  scm_c_issue_deprecation_warning 
-    ("`scm_unmemocar' is deprecated.");
-
-  if (!scm_is_pair (form))
-    return form;
-  else
-    {
-      SCM c = SCM_CAR (form);
-      if (SCM_VARIABLEP (c))
-       {
-         SCM sym = scm_module_reverse_lookup (scm_env_module (env), c);
-         if (scm_is_false (sym))
-           sym = sym_three_question_marks;
-         SCM_SETCAR (form, sym);
-       }
-      else if (SCM_ILOCP (c))
-       {
-         unsigned long int ir;
-
-         for (ir = SCM_IFRAME (c); ir != 0; --ir)
-           env = SCM_CDR (env);
-         env = SCM_CAAR (env);
-         for (ir = SCM_IDIST (c); ir != 0; --ir)
-           env = SCM_CDR (env);
-
-         SCM_SETCAR (form, SCM_ICDRP (c) ? env : SCM_CAR (env));
-       }
-      return form;
-    }
-}
+#endif /* SCM_ENABLE_DEPRECATED */
 
-#endif
 
+\f
 /*****************************************************************************/
 /*****************************************************************************/
 /*                 The definitions for execution start here.                 */
index e02e767..4467358 100644 (file)
@@ -156,15 +156,6 @@ SCM_INTERNAL void scm_init_eval (void);
 
 #if (SCM_ENABLE_DEPRECATED == 1)
 
-SCM_API SCM scm_m_undefine (SCM x, SCM env);
-
-/* Deprecated in guile 1.7.0 on 2003-11-09.  */
-SCM_API SCM scm_m_expand_body (SCM xorig, SCM env);
-
-/* Deprecated in guile 1.7.0 on 2003-11-16.  */
-SCM_API SCM scm_unmemocar (SCM form, SCM env);
-SCM_API SCM scm_macroexp (SCM x, SCM env);
-
 /* Deprecated in guile 1.7.0 on 2004-03-29.  */
 SCM_API SCM scm_ceval (SCM x, SCM env);
 SCM_API SCM scm_deval (SCM x, SCM env);