]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove unused macros ADD_TYPE_PREDICATE and DECLARE_TYPE_P
authorDavid Kastrup <dak@gnu.org>
Fri, 25 Jul 2014 16:35:49 +0000 (18:35 +0200)
committerDavid Kastrup <dak@gnu.org>
Sat, 2 Aug 2014 14:42:34 +0000 (16:42 +0200)
lily/include/lily-guile-macros.hh
lily/include/smobs.hh

index 002cbc0a8ec72e896d80d5dcaaedd1c402794d2e..acc817f87812779cc3c20a9290b7eac379d59363 100644 (file)
@@ -110,22 +110,6 @@ inline SCM ly_symbol2scm (char const *x) { return scm_from_locale_symbol ((x));
 #define DECLARE_SCHEME_CALLBACK(NAME, ARGS)     \
   static SCM NAME ARGS;                         \
   static SCM NAME ## _proc
-#define ADD_TYPE_PREDICATE(func, type_name) \
-  void \
-  func ## _type_adder ()                        \
-  {\
-    ly_add_type_predicate ((Type_predicate_ptr)func, type_name);        \
-  }\
-  ADD_SCM_INIT_FUNC(func ## _type_adder_ctor, \
-                    func ## _type_adder);
-#define ADD_TYPE_PREDICATE(func, type_name) \
-  void \
-  func ## _type_adder ()                        \
-  {\
-    ly_add_type_predicate ((Type_predicate_ptr)func, type_name);        \
-  }\
-  ADD_SCM_INIT_FUNC(func ## _type_adder_ctor, \
-                    func ## _type_adder);
 
 string mangle_cxx_identifier (string);
 
index 49c29325f0031f4e61908a1ee9035fa7f844cfc5..95e5ba1a11b1e7962e43e5df999867321105c5f0 100644 (file)
     return CL::unsmob (s);                      \
   }
 
-#define DECLARE_TYPE_P(CL) extern SCM CL ## _type_p_proc
-
 void protect_smob (SCM smob, SCM *prot_cons);
 void unprotect_smob (SCM smob, SCM *prot_cons);