From 7b637472284569e07d57f19094a467dd68459e14 Mon Sep 17 00:00:00 2001 From: "xb.teng" Date: Thu, 26 Oct 2017 14:12:52 +0800 Subject: [PATCH] [NUI] Remove deprecated APIs Change-Id: I645e0d354acbcece6170950002c2e8b052200e8c --- src/Tizen.NUI/src/public/BaseComponents/View.cs | 4 ++++ src/Tizen.NUI/src/public/NUIApplication.cs | 4 +++- src/Tizen.NUI/src/public/NUIConstants.cs | 1 + src/Tizen.NUI/src/public/VisualBase.cs | 4 +++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 3ebfcda..4f9a003 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -1164,6 +1164,7 @@ namespace Tizen.NUI.BaseComponents /// A handle to a view or an uninitialized handle. /// 3 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")] + [EditorBrowsable(EditorBrowsableState.Never)] public static View DownCast(BaseHandle handle) { View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View; @@ -1176,6 +1177,7 @@ namespace Tizen.NUI.BaseComponents /// /// 3 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")] + [EditorBrowsable(EditorBrowsableState.Never)] public static T DownCast(View view) where T : View { T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T; @@ -2107,6 +2109,7 @@ namespace Tizen.NUI.BaseComponents /// /// 3 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")] + [EditorBrowsable(EditorBrowsableState.Never)] public bool Visible { get @@ -4314,6 +4317,7 @@ namespace Tizen.NUI.BaseComponents /// /// 3 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")] + [EditorBrowsable(EditorBrowsableState.Never)] public Size Size { get diff --git a/src/Tizen.NUI/src/public/NUIApplication.cs b/src/Tizen.NUI/src/public/NUIApplication.cs index a6df000..38257b1 100755 --- a/src/Tizen.NUI/src/public/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/NUIApplication.cs @@ -16,6 +16,7 @@ */ using System; +using System.ComponentModel; using Tizen.Applications; using Tizen.Applications.CoreBackend; @@ -250,6 +251,7 @@ namespace Tizen.NUI /// /// 3 [Obsolete("Please do not use! this will be deprecated")] + [EditorBrowsable(EditorBrowsableState.Never)] public Window Window { get @@ -258,4 +260,4 @@ namespace Tizen.NUI } } } -} \ No newline at end of file +} diff --git a/src/Tizen.NUI/src/public/NUIConstants.cs b/src/Tizen.NUI/src/public/NUIConstants.cs index 3b02fd4..fa557b9 100755 --- a/src/Tizen.NUI/src/public/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/NUIConstants.cs @@ -2173,6 +2173,7 @@ namespace Tizen.NUI /// /// 3 [Obsolete("Please do not use! this will be deprecated")] + [EditorBrowsable(EditorBrowsableState.Never)] public struct AnchorPoint { /// diff --git a/src/Tizen.NUI/src/public/VisualBase.cs b/src/Tizen.NUI/src/public/VisualBase.cs index cf0b0f8..a6d9b16 100755 --- a/src/Tizen.NUI/src/public/VisualBase.cs +++ b/src/Tizen.NUI/src/public/VisualBase.cs @@ -17,6 +17,7 @@ using System; using System.Runtime.InteropServices; +using System.ComponentModel; namespace Tizen.NUI { @@ -204,6 +205,7 @@ namespace Tizen.NUI /// /// 3 [Obsolete("Please be caution! this will be readonly.")] + [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap Creation { set @@ -231,4 +233,4 @@ namespace Tizen.NUI } -} \ No newline at end of file +} -- 2.7.4