[NUI] Remove redundant codes in MenuItem
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 27 Apr 2022 01:04:50 +0000 (10:04 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 27 Apr 2022 05:57:47 +0000 (14:57 +0900)
src/Tizen.NUI.Components/Controls/MenuItem.cs

index 2060f3c..7edb83d 100755 (executable)
@@ -221,18 +221,6 @@ namespace Tizen.NUI.Components
             {
                 Add(TextLabel);
             }
-
-            // Icon is added in Button.LayoutItems().
-            if ((Icon != null) && (Children.Contains(Icon) == false))
-            {
-                Add(Icon);
-            }
-
-            // TextLabel is added in Button.LayoutItems().
-            if ((TextLabel != null) && (Children.Contains(TextLabel) == false))
-            {
-                Add(TextLabel);
-            }
         }
 
         private void Initialize()