Commit acad6b4111cbe6812b0ab53b4de0397bd59e1d05
1 parent
38195407
Removed unnecessary SetOnStage for visuals
Change-Id: I21c535e3cef4f68c92917e43d8b8989f27322e25
Showing
1 changed file
with
0 additions
and
12 deletions
examples/styling/image-channel-control-impl.cpp
| @@ -161,22 +161,10 @@ void ImageChannelControl::OnInitialize() | @@ -161,22 +161,10 @@ void ImageChannelControl::OnInitialize() | ||
| 161 | void ImageChannelControl::OnStageConnection( int depth ) | 161 | void ImageChannelControl::OnStageConnection( int depth ) |
| 162 | { | 162 | { |
| 163 | Control::OnStageConnection( depth ); | 163 | Control::OnStageConnection( depth ); |
| 164 | - | ||
| 165 | - if( mVisual ) | ||
| 166 | - { | ||
| 167 | - CustomActor self = Self(); | ||
| 168 | - mVisual.SetOnStage( self ); | ||
| 169 | - } | ||
| 170 | } | 164 | } |
| 171 | 165 | ||
| 172 | void ImageChannelControl::OnStageDisconnection() | 166 | void ImageChannelControl::OnStageDisconnection() |
| 173 | { | 167 | { |
| 174 | - if( mVisual ) | ||
| 175 | - { | ||
| 176 | - CustomActor self = Self(); | ||
| 177 | - mVisual.SetOffStage( self ); | ||
| 178 | - } | ||
| 179 | - | ||
| 180 | Control::OnStageDisconnection(); | 168 | Control::OnStageDisconnection(); |
| 181 | } | 169 | } |
| 182 | 170 |