From 7a98b8f3fe0559378972b3a202f2181985506350 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 11 Aug 2013 15:21:15 +0200 Subject: [PATCH] Issue 3493: Let Skyline's copy constructor use generated copy constructor Originally connected with issue 3490, now separate. --- lily/include/skyline.hh | 1 - lily/skyline.cc | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/lily/include/skyline.hh b/lily/include/skyline.hh index 9a5473ddd5..6846474857 100644 --- a/lily/include/skyline.hh +++ b/lily/include/skyline.hh @@ -66,7 +66,6 @@ private: public: Skyline (); - Skyline (Skyline const &src); Skyline (Direction sky); Skyline (vector const &bldgs, Axis a, Direction sky); Skyline (vector > const &bldgs, Axis a, Direction sky); diff --git a/lily/skyline.cc b/lily/skyline.cc index 5073e69e14..8654f0d973 100644 --- a/lily/skyline.cc +++ b/lily/skyline.cc @@ -457,18 +457,6 @@ Skyline::Skyline () empty_skyline (&buildings_); } -Skyline::Skyline (Skyline const &src) -{ - sky_ = src.sky_; - - /* doesn't a list's copy constructor do this? -- jneem */ - for (list::const_iterator i = src.buildings_.begin (); - i != src.buildings_.end (); i++) - { - buildings_.push_back (Building ((*i))); - } -} - Skyline::Skyline (Direction sky) { sky_ = sky; -- 2.39.5