From c2a5894f2dbe9982830066ab9347b059e6e7d845 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 25 Apr 2017 18:20:26 -0700 Subject: [core] Immutable Impls --- src/mbgl/renderer/render_light.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/mbgl/renderer/render_light.cpp') diff --git a/src/mbgl/renderer/render_light.cpp b/src/mbgl/renderer/render_light.cpp index 134e1829e0..1fc346fd26 100644 --- a/src/mbgl/renderer/render_light.cpp +++ b/src/mbgl/renderer/render_light.cpp @@ -2,17 +2,8 @@ namespace mbgl { -RenderLight::RenderLight(std::shared_ptr impl_) - : impl(std::move(impl_)) { -} - -RenderLight::RenderLight(std::shared_ptr impl_, const TransitioningLight transitioning_) - : impl(std::move(impl_)) - , transitioning(transitioning_) { -} - -std::unique_ptr RenderLight::copy(std::shared_ptr impl_) const { - return std::make_unique(std::move(impl_), transitioning); +RenderLight::RenderLight(Immutable impl_) + : impl(std::move(impl_)) { } void RenderLight::transition(const CascadeParameters& parameters) { -- cgit v1.2.1