Procházet zdrojové kódy

Merge pull request #6097 from workgroupengineering/fixes/Warning_CS0169

fixes: Warnings CS0169
Max Katz před 4 roky
rodič
revize
beaf783b78

+ 0 - 3
src/Avalonia.Controls.DataGrid/DataGrid.cs

@@ -75,7 +75,6 @@ namespace Avalonia.Controls
         private const double DATAGRID_defaultMinColumnWidth = 20;
         private const double DATAGRID_defaultMaxColumnWidth = double.PositiveInfinity;
 
-        private List<Exception> _validationErrors;
         private List<Exception> _bindingValidationErrors;
         private IDisposable _validationSubscription;
 
@@ -102,7 +101,6 @@ namespace Avalonia.Controls
         private bool _areHandlersSuspended;
         private bool _autoSizingColumns;
         private IndexToValueTable<bool> _collapsedSlotsTable;
-        private DataGridCellCoordinates _currentCellCoordinates;
         private Control _clickedElement;
 
         // used to store the current column during a Reset
@@ -141,7 +139,6 @@ namespace Avalonia.Controls
         private DataGridSelectedItemsCollection _selectedItems;
         private bool _temporarilyResetCurrentCell;
         private object _uneditedValue; // Represents the original current cell value at the time it enters editing mode.
-        private ICellEditBinding _currentCellEditBinding;
 
         // An approximation of the sum of the heights in pixels of the scrolling rows preceding
         // the first displayed scrolling row.  Since the scrolled off rows are discarded, the grid

+ 0 - 1
src/Avalonia.Controls/Menu.cs

@@ -17,7 +17,6 @@ namespace Avalonia.Controls
         private static readonly ITemplate<IPanel> DefaultPanel =
             new FuncTemplate<IPanel>(() => new StackPanel { Orientation = Orientation.Horizontal });
 
-        private LightDismissOverlayLayer? _overlay;
 
         /// <summary>
         /// Initializes a new instance of the <see cref="Menu"/> class.

+ 0 - 1
src/Avalonia.Controls/Repeater/ViewportManager.cs

@@ -27,7 +27,6 @@ namespace Avalonia.Controls
         private IScrollAnchorProvider _scroller;
         private IControl _makeAnchorElement;
         private bool _isAnchorOutsideRealizedRange;
-        private Task _cacheBuildAction;
         private Rect _visibleWindow;
         private Rect _layoutExtent;
         // This is the expected shift by the layout.

+ 0 - 1
src/Avalonia.Controls/Repeater/VirtualizationInfo.cs

@@ -27,7 +27,6 @@ namespace Avalonia.Controls
     internal class VirtualizationInfo
     {
         private int _pinCounter;
-        private object _data;
 
         public Rect ArrangeBounds { get; set; }
         public bool AutoRecycleCandidate { get; set; }

+ 0 - 1
src/Avalonia.X11/TransparencyHelper.cs

@@ -10,7 +10,6 @@ namespace Avalonia.X11
         private readonly X11Globals _globals;
         private WindowTransparencyLevel _currentLevel;
         private WindowTransparencyLevel _requestedLevel;
-        private bool _isCompositing;
         private bool _blurAtomsAreSet;
         
         public Action<WindowTransparencyLevel> TransparencyLevelChanged { get; set; }

+ 0 - 1
src/Avalonia.X11/X11Window.cs

@@ -30,7 +30,6 @@ namespace Avalonia.X11
         ITopLevelImplWithTextInputMethod
     {
         private readonly AvaloniaX11Platform _platform;
-        private readonly IWindowImpl _popupParent;
         private readonly bool _popup;
         private readonly X11Info _x11;
         private XConfigureEvent? _configure;

+ 0 - 1
src/Linux/Avalonia.LinuxFramebuffer/FramebufferToplevelImpl.cs

@@ -15,7 +15,6 @@ namespace Avalonia.LinuxFramebuffer
         private readonly IOutputBackend _outputBackend;
         private readonly IInputBackend _inputBackend;
 
-        private bool _renderQueued;
         public IInputRoot InputRoot { get; private set; }
 
         public FramebufferToplevelImpl(IOutputBackend outputBackend, IInputBackend inputBackend)

+ 0 - 1
src/Linux/Avalonia.LinuxFramebuffer/Input/EvDev/EvDevTouchScreen.cs

@@ -7,7 +7,6 @@ namespace Avalonia.LinuxFramebuffer.Input.EvDev
     internal class EvDevSingleTouchScreen : EvDevDeviceHandler
     {
         private readonly IScreenInfoProvider _screenInfo;
-        private readonly int _width, _height;
         private readonly Matrix _calibration;
         private input_absinfo _axisX;
         private input_absinfo _axisY;

+ 0 - 1
src/Linux/Avalonia.LinuxFramebuffer/Output/DrmOutput.cs

@@ -16,7 +16,6 @@ namespace Avalonia.LinuxFramebuffer.Output
     public unsafe class DrmOutput : IGlOutputBackend, IGlPlatformSurface
     {
         private DrmCard _card;
-        private readonly EglGlPlatformSurface _eglPlatformSurface;
         public PixelSize PixelSize => _mode.Resolution;
         public double Scaling { get; set; }
         public IGlContext PrimaryContext => _deferredContext;

+ 0 - 1
src/Windows/Avalonia.Win32/WinRT/Composition/WinUICompositorConnection.cs

@@ -17,7 +17,6 @@ namespace Avalonia.Win32.WinRT.Composition
     class WinUICompositorConnection : IRenderTimer
     {
         private readonly EglContext _syncContext;
-        private IntPtr _queue;
         private ICompositor _compositor;
         private ICompositor2 _compositor2;
         private ICompositor5 _compositor5;