[NUI] Resolve CA1823 of StyleCop (#1669)
authorjaehyun0cho <jaehyun0cho@gmail.com>
Tue, 9 Jun 2020 10:12:06 +0000 (19:12 +0900)
committerGitHub <noreply@github.com>
Tue, 9 Jun 2020 10:12:06 +0000 (19:12 +0900)
To resolve CA1823 of StyleCop in Tizen.NUI.Components and
Tizen.NUI.Wearable, unused variables are removed.

'isNeedAnimation' in CircularPagination.cs is not removed because it is
marked as 'TODO'.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
src/Tizen.NUI.Components/Controls/RecyclerView/LinearLayoutManager.cs
src/Tizen.NUI.Components/Controls/Scrollbar.cs
src/Tizen.NUI.Wearable/src/public/Popup.cs
src/Tizen.NUI.Wearable/src/public/WearableList.cs

index 78534fc..c088156 100644 (file)
@@ -28,7 +28,6 @@ namespace Tizen.NUI.Components
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class LinearListLayoutManager : LayoutManager
     {
-        private float mLayoutOriginPosition = 0;
         private int firstVisibleItemIndex = -1;
         private int lastVisibleItemIndex = -1;
 
@@ -167,4 +166,4 @@ namespace Tizen.NUI.Components
             return scrollPosition;
         }
     }
-}
\ No newline at end of file
+}
index d362d7d..7e02aa2 100644 (file)
@@ -110,7 +110,6 @@ namespace Tizen.NUI.Components
         private Animation thumbSizeAnimation;
         private Calculator calculator;
         private Size containerSize = new Size(0, 0);
-        private float currentPosition;
 
         #endregion Fields
 
index c4a211f..6f84efd 100755 (executable)
@@ -548,10 +548,8 @@ namespace Tizen.NUI.Wearable
         private TextLabel title;
         private ScrollableBase scroll;
         private Dictionary<string, View> scrollList;
-        private EventHandler buttonClick;
         private Timer timer;
         private PopupStyle popupStyle;
-        private bool wrapContent = false;
         private View buttonContainer;
         private string firstButtonIndex;
         private View titleContentContainer;
index 98edd26..0b44afe 100644 (file)
@@ -110,12 +110,10 @@ namespace Tizen.NUI.Wearable
             }
         }
 
-        private float dragStartPosition = 0.0f;
-
         private void OnScrollDragStart(object source, ScrollableBase.ScrollEventArgs args)
         {
             RecycleItem prevFocusedItem = FocusedItem;
             prevFocusedItem?.OnFocusLost();
         }
     }
-}
\ No newline at end of file
+}