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

Commit 07003b3

Browse files
Removing unused interface
1 parent aaaf9ec commit 07003b3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/GitHub.App/SampleData/PullRequestAnnotationsViewModelDesigner.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace GitHub.SampleData
1313
[ExcludeFromCodeCoverage]
1414
public sealed class PullRequestAnnotationsViewModelDesigner : PanePageViewModelBase, IPullRequestAnnotationsViewModel
1515
{
16-
public ILocalRepositoryModel LocalRepository { get; set; }
16+
public LocalRepositoryModel LocalRepository { get; set; }
1717
public string RemoteRepositoryOwner { get; set; }
1818
public int PullRequestNumber { get; set; } = 123;
1919
public string CheckRunId { get; set; }
@@ -78,7 +78,8 @@ public sealed class PullRequestAnnotationsViewModelDesigner : PanePageViewModelB
7878

7979
public string CheckRunName { get; } = "Psuedo Check Run";
8080

81-
public Task InitializeAsync(ILocalRepositoryModel localRepository, IConnection connection, string owner, string repo,
81+
public Task InitializeAsync(LocalRepositoryModel localRepository, IConnection connection, string owner,
82+
string repo,
8283
int pullRequestNumber, string checkRunId)
8384
{
8485
return Task.CompletedTask;

src/GitHub.App/ViewModels/GitHubPane/PullRequestAnnotationsViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public PullRequestAnnotationsViewModel(IPullRequestSessionManager sessionManager
4040
}
4141

4242
/// <inheritdoc/>
43-
public async Task InitializeAsync(ILocalRepositoryModel localRepository, IConnection connection, string owner,
43+
public async Task InitializeAsync(LocalRepositoryModel localRepository, IConnection connection, string owner,
4444
string repo, int pullRequestNumber, string checkRunId)
4545
{
4646
if (repo != localRepository.Name)
@@ -66,7 +66,7 @@ public async Task InitializeAsync(ILocalRepositoryModel localRepository, IConnec
6666
}
6767

6868
/// <inheritdoc/>
69-
public ILocalRepositoryModel LocalRepository { get; private set; }
69+
public LocalRepositoryModel LocalRepository { get; private set; }
7070

7171
/// <inheritdoc/>
7272
public string RemoteRepositoryOwner { get; private set; }

src/GitHub.Exports.Reactive/ViewModels/GitHubPane/IPullRequestAnnotationsViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface IPullRequestAnnotationsViewModel : IPanePageViewModel
1515
/// <summary>
1616
/// Gets the local repository.
1717
/// </summary>
18-
ILocalRepositoryModel LocalRepository { get; }
18+
LocalRepositoryModel LocalRepository { get; }
1919

2020
/// <summary>
2121
/// Gets the owner of the remote repository that contains the pull request.
@@ -71,7 +71,7 @@ public interface IPullRequestAnnotationsViewModel : IPanePageViewModel
7171
/// <param name="pullRequestNumber">The pull request's number.</param>
7272
/// <param name="checkRunId">The pull request's check run id.</param>
7373
Task InitializeAsync(
74-
ILocalRepositoryModel localRepository,
74+
LocalRepositoryModel localRepository,
7575
IConnection connection,
7676
string owner,
7777
string repo,

0 commit comments

Comments
 (0)