Skip to content

Commit

Permalink
Remove an unused argument of type TaskScheduler from AnimatedSampleBa…
Browse files Browse the repository at this point in the history
…se (#1063)
  • Loading branch information
TysonMN authored and mattleibow committed Dec 14, 2019
1 parent 1403ad8 commit 7fe55eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions samples/Gallery/Shared/SampleBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected override async Task OnInit()
{
while (!cts.IsCancellationRequested)
{
await OnUpdate(cts.Token, scheduler);
await OnUpdate(cts.Token);

new Task(Refresh).Start(scheduler);
}
Expand All @@ -177,7 +177,7 @@ protected override void OnDestroy()
cts.Cancel();
}

protected abstract Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler);
protected abstract Task OnUpdate(CancellationToken token);
}

public enum GestureState
Expand Down
2 changes: 1 addition & 1 deletion samples/Gallery/Shared/Samples/DecodeGifFramesSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected override async Task OnInit()
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)
Expand Down
2 changes: 1 addition & 1 deletion samples/Gallery/Shared/Samples/ThreeDSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected override async Task OnInit()
await base.OnInit();
}

protected override async Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler)
protected override async Task OnUpdate(CancellationToken token)
{
await Task.Delay(25, token);

Expand Down
2 changes: 1 addition & 1 deletion samples/Gallery/Shared/Samples/ThreeDSamplePerspective.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected override async Task OnInit()
await base.OnInit();
}

protected override async Task OnUpdate(CancellationToken token, TaskScheduler mainScheduler)
protected override async Task OnUpdate(CancellationToken token)
{
await Task.Delay(25, token);

Expand Down

0 comments on commit 7fe55eb

Please sign in to comment.