From 7fe55eb3ee6e2dfad48a03851314de8420109dce Mon Sep 17 00:00:00 2001 From: Tyson Williams <34664007+bender2k14@users.noreply.github.com> Date: Fri, 13 Dec 2019 19:46:49 -0600 Subject: [PATCH] Remove an unused argument of type TaskScheduler from AnimatedSampleBase (#1063) --- samples/Gallery/Shared/SampleBase.cs | 4 ++-- samples/Gallery/Shared/Samples/DecodeGifFramesSample.cs | 2 +- samples/Gallery/Shared/Samples/ThreeDSample.cs | 2 +- samples/Gallery/Shared/Samples/ThreeDSamplePerspective.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/Gallery/Shared/SampleBase.cs b/samples/Gallery/Shared/SampleBase.cs index 8db013de3..217e948c3 100644 --- a/samples/Gallery/Shared/SampleBase.cs +++ b/samples/Gallery/Shared/SampleBase.cs @@ -163,7 +163,7 @@ namespace SkiaSharpSample { while (!cts.IsCancellationRequested) { - await OnUpdate(cts.Token, scheduler); + await OnUpdate(cts.Token); new Task(Refresh).Start(scheduler); } @@ -177,7 +177,7 @@ namespace SkiaSharpSample cts.Cancel(); } - protected abstract Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler); + protected abstract Task OnUpdate(CancellationToken token); } public enum GestureState diff --git a/samples/Gallery/Shared/Samples/DecodeGifFramesSample.cs b/samples/Gallery/Shared/Samples/DecodeGifFramesSample.cs index 8bb18e9ab..a9d2d951e 100644 --- a/samples/Gallery/Shared/Samples/DecodeGifFramesSample.cs +++ b/samples/Gallery/Shared/Samples/DecodeGifFramesSample.cs @@ -37,7 +37,7 @@ namespace SkiaSharpSample.Samples await base.OnInit(); } - protected override async Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler) + protected override async Task OnUpdate(CancellationToken token) { var duration = frames[currentFrame].Duration; if (duration <= 0) diff --git a/samples/Gallery/Shared/Samples/ThreeDSample.cs b/samples/Gallery/Shared/Samples/ThreeDSample.cs index ecc7f6500..ce7c958de 100644 --- a/samples/Gallery/Shared/Samples/ThreeDSample.cs +++ b/samples/Gallery/Shared/Samples/ThreeDSample.cs @@ -27,7 +27,7 @@ namespace SkiaSharpSample.Samples await base.OnInit(); } - protected override async Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler) + protected override async Task OnUpdate(CancellationToken token) { await Task.Delay(25, token); diff --git a/samples/Gallery/Shared/Samples/ThreeDSamplePerspective.cs b/samples/Gallery/Shared/Samples/ThreeDSamplePerspective.cs index 3ce356532..bc93672b4 100644 --- a/samples/Gallery/Shared/Samples/ThreeDSamplePerspective.cs +++ b/samples/Gallery/Shared/Samples/ThreeDSamplePerspective.cs @@ -26,7 +26,7 @@ namespace SkiaSharpSample.Samples await base.OnInit(); } - protected override async Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler) + protected override async Task OnUpdate(CancellationToken token) { await Task.Delay(25, token);