]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-context.cc
(transform_heads): replace
[lilypond.git] / lily / global-context.cc
index 7acf004cf1f09b218747e632ee67c13956ddcf51..ee26880d4deeb366207740e1d042c1b953850dc2 100644 (file)
@@ -24,8 +24,6 @@ Global_context::Global_context (Output_def *o, Moment final, Object_key *key)
                                      Moment(0),
                                      "Global", "", 0))
 {
-  scm_gc_unprotect_object (key_->self_scm());
-  
   output_def_ = o;
   final_mom_ = final;
   definition_ = find_context_def (o, ly_symbol2scm ("Global"));
@@ -55,7 +53,7 @@ Global_context::add_moment_to_process (Moment m)
   if (m < now_mom_)
     programming_error ("Trying to freeze in time.");
   
-  for (int i=0; i <  extra_mom_pq_.size (); i++)
+  for (int i = 0; i <  extra_mom_pq_.size (); i++)
     if (extra_mom_pq_[i] == m)
       return;
   extra_mom_pq_.insert (m);
@@ -167,7 +165,6 @@ Global_context::run_iterator_on_me (Music_iterator * iter)
          Object_key const *key = get_context_key ("Score", "");
          Context *c = t->instantiate (SCM_EOL, key);
          add_context (c);
-         scm_gc_unprotect_object (key->self_scm());
 
          Score_context *sc = dynamic_cast<Score_context*> (c);
          sc->prepare (w);