Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 97998cc

Browse files
committed
Move AvoidUnusedPrivateFields out of global
1 parent c8b8247 commit 97998cc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
-1014 Bytes
Binary file not shown.

src/GitHub.UI.Reactive/Controls/Validation/UserErrorMessages.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System;
22
using System.Diagnostics.CodeAnalysis;
3-
using System.Reactive.Disposables;
43
using System.Reactive.Linq;
54
using System.Windows;
65
using System.Windows.Controls;
76
using System.Windows.Media;
8-
using GitHub.Extensions;
97
using GitHub.Extensions.Reactive;
108
using ReactiveUI;
119
using ReactiveUI.Legacy;
@@ -14,7 +12,10 @@ namespace GitHub.UI
1412
{
1513
public class UserErrorMessages : UserControl
1614
{
15+
[SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
1716
readonly IDisposable whenAnyShowingMessage;
17+
18+
[SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
1819
readonly IDisposable whenAnyDataContext;
1920

2021
public UserErrorMessages()
@@ -34,7 +35,7 @@ public UserErrorMessages()
3435
});
3536
}
3637

37-
public static readonly DependencyProperty IconMarginProperty = DependencyProperty.Register("IconMargin", typeof(Thickness), typeof(UserErrorMessages), new PropertyMetadata(new Thickness(0,0,8,0)));
38+
public static readonly DependencyProperty IconMarginProperty = DependencyProperty.Register("IconMargin", typeof(Thickness), typeof(UserErrorMessages), new PropertyMetadata(new Thickness(0, 0, 8, 0)));
3839
public Thickness IconMargin
3940
{
4041
get { return (Thickness)GetValue(IconMarginProperty); }
-802 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)