[NUI] Remove SetValueAndForceSendChangeSignal
authorFang Xiaohui <xiaohui.fang@samsung.com>
Wed, 23 Mar 2022 03:28:22 +0000 (11:28 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 27 Apr 2022 02:44:42 +0000 (11:44 +0900)
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs

index 37e9706..a63a90f 100755 (executable)
@@ -150,7 +150,7 @@ namespace Tizen.NUI.BaseComponents
             }
             set
             {
-                SetValueAndForceSendChangeSignal(TextProperty, value);
+                SetValue(TextProperty, value);
                 NotifyPropertyChanged();
             }
         }
index 7c008a6..acc4180 100755 (executable)
@@ -227,7 +227,7 @@ namespace Tizen.NUI.BaseComponents
             }
             set
             {
-                SetValueAndForceSendChangeSignal(TextProperty, value);
+                SetValue(TextProperty, value);
                 NotifyPropertyChanged();
             }
         }
index c42b12c..426fb55 100755 (executable)
@@ -260,25 +260,6 @@ namespace Tizen.NUI.Binding
             }
         }
 
-        internal void SetValueAndForceSendChangeSignal(BindableProperty property, object value)
-        {
-            if (property == null)
-                throw new ArgumentNullException(nameof(property));
-
-            if (true == IsBinded)
-            {
-                if (property.IsReadOnly)
-                    throw new InvalidOperationException(string.Format("The BindableProperty \"{0}\" is readonly.", property.PropertyName));
-
-                SetValueCore(property, value, SetValueFlags.ClearOneWayBindings | SetValueFlags.ClearDynamicResource,
-                    SetValuePrivateFlags.ManuallySet | SetValuePrivateFlags.CheckAccess, true);
-            }
-            else
-            {
-                property.PropertyChanged?.Invoke(this, null, value);
-            }
-        }
-
         /// This will be public opened in next ACR.
         [EditorBrowsable(EditorBrowsableState.Never)]
         public void ForceNotifyBindedInstance(BindableProperty property)