Browse Source
Merge pull request #6808 from workgroupengineering/fixes/Warning_CS0067
fix: Warning CS0067 The event is never used
pull/6989/head
Steven Kirk
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with
11 additions and
9 deletions
-
src/Avalonia.Controls/Platform/InternalPlatformThreadingInterface.cs
-
src/Avalonia.Controls/TextBoxTextInputMethodClient.cs
-
src/Avalonia.DesignerSupport/Remote/FileWatcherTransport.cs
-
src/Avalonia.FreeDesktop/DBusMenuExporter.cs
-
src/Avalonia.Native/AvaloniaNativeMenuExporter.cs
-
src/Avalonia.X11/X11Window.Xim.cs
-
tests/Avalonia.Controls.UnitTests/ItemsSourceViewTests.cs
|
|
|
@ -85,7 +85,9 @@ namespace Avalonia.Controls.Platform |
|
|
|
|
|
|
|
public bool CurrentThreadIsLoopThread => TlsCurrentThreadIsLoopThread; |
|
|
|
public event Action<DispatcherPriority?> Signaled; |
|
|
|
#pragma warning disable CS0067
|
|
|
|
public event Action<TimeSpan> Tick; |
|
|
|
#pragma warning restore CS0067
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
public bool SupportsSurroundingText => false; |
|
|
|
public TextInputMethodSurroundingText SurroundingText => throw new NotSupportedException(); |
|
|
|
public event EventHandler SurroundingTextChanged; |
|
|
|
public event EventHandler SurroundingTextChanged { add { } remove { } } |
|
|
|
public string TextBeforeCursor => null; |
|
|
|
public string TextAfterCursor => null; |
|
|
|
|
|
|
|
|
|
|
|
@ -59,7 +59,7 @@ namespace Avalonia.DesignerSupport.Remote |
|
|
|
remove { _onMessage -= value; } |
|
|
|
} |
|
|
|
|
|
|
|
public event Action<IAvaloniaRemoteTransportConnection, Exception> OnException; |
|
|
|
public event Action<IAvaloniaRemoteTransportConnection, Exception> OnException { add { } remove { } } |
|
|
|
public void Start() |
|
|
|
{ |
|
|
|
UpdaterThread(); |
|
|
|
|
|
|
|
@ -413,10 +413,10 @@ namespace Avalonia.FreeDesktop |
|
|
|
#region Events
|
|
|
|
|
|
|
|
private event Action<((int, IDictionary<string, object>)[] updatedProps, (int, string[])[] removedProps)> |
|
|
|
ItemsPropertiesUpdated; |
|
|
|
ItemsPropertiesUpdated { add { } remove { } } |
|
|
|
private event Action<(uint revision, int parent)> LayoutUpdated; |
|
|
|
private event Action<(int id, uint timestamp)> ItemActivationRequested; |
|
|
|
private event Action<PropertyChanges> PropertiesChanged; |
|
|
|
private event Action<(int id, uint timestamp)> ItemActivationRequested { add { } remove { } } |
|
|
|
private event Action<PropertyChanges> PropertiesChanged { add { } remove { } } |
|
|
|
|
|
|
|
async Task<IDisposable> IDBusMenu.WatchItemsPropertiesUpdatedAsync(Action<((int, IDictionary<string, object>)[] updatedProps, (int, string[])[] removedProps)> handler, Action<Exception> onError) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ namespace Avalonia.Native |
|
|
|
|
|
|
|
public bool IsNativeMenuExported => _exported; |
|
|
|
|
|
|
|
public event EventHandler OnIsNativeMenuExportedChanged; |
|
|
|
public event EventHandler OnIsNativeMenuExportedChanged { add { } remove { } } |
|
|
|
|
|
|
|
public void SetNativeMenu(NativeMenu menu) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -112,8 +112,8 @@ namespace Avalonia.X11 |
|
|
|
public ValueTask<bool> HandleEventAsync(RawKeyEventArgs args, int keyVal, int keyCode) => |
|
|
|
new ValueTask<bool>(false); |
|
|
|
|
|
|
|
public event Action<string> Commit; |
|
|
|
public event Action<X11InputMethodForwardedKey> ForwardKey; |
|
|
|
public event Action<string> Commit { add { } remove { } } |
|
|
|
public event Action<X11InputMethodForwardedKey> ForwardKey { add { } remove { } } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -47,7 +47,7 @@ namespace Avalonia.Controls.UnitTests |
|
|
|
|
|
|
|
private class InvalidCollection : INotifyCollectionChanged, IEnumerable<string> |
|
|
|
{ |
|
|
|
public event NotifyCollectionChangedEventHandler CollectionChanged; |
|
|
|
public event NotifyCollectionChangedEventHandler CollectionChanged { add { } remove { } } |
|
|
|
|
|
|
|
public IEnumerator<string> GetEnumerator() |
|
|
|
{ |
|
|
|
|