From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Wed, 28 Oct 2020 06:45:22 +0000 (+0900) Subject: [NUI] Fix build warning: CS0105 (#2136) X-Git-Tag: accepted/tizen/unified/20210219.040944~329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b309dc925c5018bc65ba0f8f59cf8e6cab1008f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix build warning: CS0105 (#2136) * [NUI] Fix build warning: CS0105 * [NUI] Fix build warning: CS0169 --- diff --git a/src/Tizen.NUI/src/internal/ViewImpl.cs b/src/Tizen.NUI/src/internal/ViewImpl.cs index 136684d..4662acc 100755 --- a/src/Tizen.NUI/src/internal/ViewImpl.cs +++ b/src/Tizen.NUI/src/internal/ViewImpl.cs @@ -826,8 +826,6 @@ namespace Tizen.NUI private SwigDelegateViewImpl_19 swigDelegate19; private SwigDelegateViewImpl_20 swigDelegate20; private SwigDelegateViewImpl_21 swigDelegate21; - private SwigDelegateViewImpl_22 swigDelegate22; - private SwigDelegateViewImpl_23 swigDelegate23; private SwigDelegateViewImpl_24 swigDelegate24; private SwigDelegateViewImpl_25 swigDelegate25; private SwigDelegateViewImpl_26 swigDelegate26; diff --git a/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs b/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs index 72745c8..0ba7cb9 100755 --- a/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs +++ b/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs @@ -611,8 +611,6 @@ namespace Tizen.NUI private DelegateViewWrapperImpl_19 Delegate19; private DelegateViewWrapperImpl_20 Delegate20; private DelegateViewWrapperImpl_21 Delegate21; - private DelegateViewWrapperImpl_22 Delegate22; - private DelegateViewWrapperImpl_23 Delegate23; private DelegateViewWrapperImpl_24 Delegate24; private DelegateViewWrapperImpl_25 Delegate25; private DelegateViewWrapperImpl_26 Delegate26; diff --git a/src/Tizen.NUI/src/public/Capture.cs b/src/Tizen.NUI/src/public/Capture.cs index af2fd4a..2dee58a 100755 --- a/src/Tizen.NUI/src/public/Capture.cs +++ b/src/Tizen.NUI/src/public/Capture.cs @@ -1,6 +1,3 @@ -using System.Diagnostics; -using System; -using System.Drawing; /* * Copyright(c) 2020 Samsung Electronics Co., Ltd. * @@ -18,12 +15,15 @@ using System.Drawing; * */ +using System.Diagnostics; +using System; +using System.Drawing; + namespace Tizen.NUI { using global::System; using global::System.ComponentModel; using global::System.Runtime.InteropServices; - using global::System.ComponentModel; using Tizen.NUI.BaseComponents; /// @@ -107,9 +107,9 @@ namespace Tizen.NUI /// This exception can be due to the invalid size values, of when width or height is lower than zero. /// This exception is due to the path is null. [EditorBrowsable(EditorBrowsableState.Never)] - public void Start(Container source, Position position, Size size, string path, Color color ) + public void Start(Container source, Position position, Size size, string path, Color color) { - if (size.Width <= 0 || size.Height <=0) + if (size.Width <= 0 || size.Height <= 0) { throw new InvalidOperationException("size should larger than zero"); } @@ -139,9 +139,9 @@ namespace Tizen.NUI /// This exception can be due to the invalid size values, of when width or height is lower than zero. /// This exception is due to the path is null. [EditorBrowsable(EditorBrowsableState.Never)] - public void Start(Container source, Size size, string path, Color color, uint quality ) + public void Start(Container source, Size size, string path, Color color, uint quality) { - if (size.Width <= 0 || size.Height <=0) + if (size.Width <= 0 || size.Height <= 0) { throw new InvalidOperationException("size should larger than zero"); } @@ -176,7 +176,7 @@ namespace Tizen.NUI [EditorBrowsable(EditorBrowsableState.Never)] public void Start(Container source, Size size, string path, Color color) { - if (size.Width <= 0 || size.Height <=0) + if (size.Width <= 0 || size.Height <= 0) { throw new InvalidOperationException("size should larger than zero"); } @@ -209,7 +209,7 @@ namespace Tizen.NUI [EditorBrowsable(EditorBrowsableState.Never)] public void Start(Container source, Size size, string path) { - if (size.Width <= 0 || size.Height <=0) + if (size.Width <= 0 || size.Height <= 0) { throw new InvalidOperationException("size should larger than zero"); } @@ -217,7 +217,7 @@ namespace Tizen.NUI { throw new ArgumentNullException("path should not be null"); } - + if (source is View || source is Layer) { Interop.Capture.Start2(swigCPtr, source.SwigCPtr, new Vector2(size.Width, size.Height).SwigCPtr, path); @@ -238,7 +238,7 @@ namespace Tizen.NUI { throw new InvalidOperationException("quality should between zero to 100"); } - + Interop.Capture.SetImageQuality(swigCPtr, quality); }