From acad6b4111cbe6812b0ab53b4de0397bd59e1d05 Mon Sep 17 00:00:00 2001 From: David Steele Date: Tue, 8 Nov 2016 20:15:12 +0000 Subject: [PATCH] Removed unnecessary SetOnStage for visuals Change-Id: I21c535e3cef4f68c92917e43d8b8989f27322e25 --- examples/styling/image-channel-control-impl.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/examples/styling/image-channel-control-impl.cpp b/examples/styling/image-channel-control-impl.cpp index 1b3c9e1..4672d7d 100644 --- a/examples/styling/image-channel-control-impl.cpp +++ b/examples/styling/image-channel-control-impl.cpp @@ -161,22 +161,10 @@ void ImageChannelControl::OnInitialize() void ImageChannelControl::OnStageConnection( int depth ) { Control::OnStageConnection( depth ); - - if( mVisual ) - { - CustomActor self = Self(); - mVisual.SetOnStage( self ); - } } void ImageChannelControl::OnStageDisconnection() { - if( mVisual ) - { - CustomActor self = Self(); - mVisual.SetOffStage( self ); - } - Control::OnStageDisconnection(); } -- 2.7.4