]> git.donarmstrong.com Git - lilypond.git/commitdiff
skylines: remove unused function
authorKeith OHara <k-ohara5a5a@oco.net>
Mon, 22 Dec 2014 04:15:46 +0000 (20:15 -0800)
committerKeith OHara <k-ohara5a5a@oco.net>
Sat, 3 Jan 2015 21:44:14 +0000 (13:44 -0800)
lily/include/skyline-pair.hh
lily/include/skyline.hh
lily/skyline-pair.cc
lily/skyline.cc
lily/stencil-integral.cc

index 73b5586029f0e8c675fb425d2201318f8ecf15f6..8712b66c429e937b1ef0402457612ebda8996c4c 100644 (file)
@@ -40,7 +40,6 @@ public:
   Real right () const;
   void raise (Real);
   void shift (Real);
-  void deholify ();
   void insert (Box const &, Axis);
   void merge (Skyline_pair const &other);
   Skyline &operator [] (Direction d);
index 8e75123cdab3c322a94b851d0a39dd4dcd5b9ce8..536274161b00d29d21005a40ef937bf3a5b3f9d6 100644 (file)
@@ -73,7 +73,6 @@ public:
   Skyline (Box const &b, Axis a, Direction sky);
 
   vector<Offset> to_points (Axis) const;
-  void deholify ();
   void merge (Skyline const &);
   void insert (Box const &, Axis);
   void print () const;
index 205fd889d5f879391a1f877b4fe04ab04ef5796a..75f77fd5b245b0193bf2e6e386a1116391c1b6b7 100644 (file)
@@ -54,13 +54,6 @@ Skyline_pair::raise (Real r)
   skylines_[DOWN].raise (r);
 }
 
-void
-Skyline_pair::deholify ()
-{
-  skylines_[UP].deholify ();
-  skylines_[DOWN].deholify ();
-}
-
 void
 Skyline_pair::shift (Real r)
 {
index ab7e45a30b730fd35c2d594039531b789e393558..c8c6d347f8574351991a13b1d974513133257574 100644 (file)
@@ -232,32 +232,6 @@ Skyline::normalize ()
   assert (buildings_.back ().end_ == infinity_f);
 }
 
-void
-Skyline::deholify ()
-{
-  // Since a skyline should always be normalized, we can
-  // assume that there are never two adjacent empty buildings.
-  // That is, if center is empty then left and right are not.
-  list<Building>::iterator left = buildings_.begin ();
-  list<Building>::iterator center = buildings_.begin ();
-  list<Building>::iterator right;
-
-  for (right = buildings_.begin (); right != buildings_.end (); right++)
-    {
-      if (center != buildings_.begin () && center->y_intercept_ == -infinity_f)
-        {
-          printf ("We are here");
-          exit (17); // not-reached
-          Real p1 = left->height (left->end_);
-          Real p2 = right->height (right->start_);
-          *center = Building (center->start_, p1, p2, center->end_);
-
-          left = center;
-          center = right;
-        }
-    }
-}
-
 void
 Skyline::internal_merge_skyline (list<Building> *s1, list<Building> *s2,
                                  list<Building> *const result) const
index c455503c2fd3beb8646de5f2a8b7e3f355bd6173..91f1333867c4d03652d264b57a481b2d67884458 100644 (file)
@@ -1058,7 +1058,6 @@ Stencil::skylines_from_stencil (SCM sten, Real pad, Axis a)
   for (DOWN_and_UP (d))
     out[d] = out[d].padded (pad);
 
-  out.deholify ();
   return out.smobbed_copy ();
 }