From: David Steele Date: Tue, 8 Nov 2016 20:15:12 +0000 (+0000) Subject: Removed unnecessary SetOnStage for visuals X-Git-Tag: dali_1.2.14~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acad6b4111cbe6812b0ab53b4de0397bd59e1d05;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Removed unnecessary SetOnStage for visuals Change-Id: I21c535e3cef4f68c92917e43d8b8989f27322e25 --- 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(); }