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

Commit 653cc79

Browse files
Undoing changes to PullRequestCreationViewModel
1 parent fcd503d commit 653cc79

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
using GitHub.Models.Drafts;
1919
using GitHub.Primitives;
2020
using GitHub.Services;
21-
using GitHub.UI;
2221
using GitHub.Validation;
2322
using Octokit;
2423
using ReactiveUI;
@@ -52,9 +51,8 @@ public PullRequestCreationViewModel(
5251
IPullRequestService service,
5352
INotificationService notifications,
5453
IMessageDraftStore draftStore,
55-
IGitService gitService,
56-
IAutoCompleteAdvisor autoCompleteAdvisor)
57-
: this(modelServiceFactory, service, notifications, draftStore, gitService, autoCompleteAdvisor, DefaultScheduler.Instance)
54+
IGitService gitService)
55+
: this(modelServiceFactory, service, notifications, draftStore, gitService, DefaultScheduler.Instance)
5856
{
5957
}
6058

@@ -64,22 +62,19 @@ public PullRequestCreationViewModel(
6462
INotificationService notifications,
6563
IMessageDraftStore draftStore,
6664
IGitService gitService,
67-
IAutoCompleteAdvisor autoCompleteAdvisor,
6865
IScheduler timerScheduler)
6966
{
7067
Guard.ArgumentNotNull(modelServiceFactory, nameof(modelServiceFactory));
7168
Guard.ArgumentNotNull(service, nameof(service));
7269
Guard.ArgumentNotNull(notifications, nameof(notifications));
7370
Guard.ArgumentNotNull(draftStore, nameof(draftStore));
7471
Guard.ArgumentNotNull(gitService, nameof(gitService));
75-
Guard.ArgumentNotNull(autoCompleteAdvisor, nameof(autoCompleteAdvisor));
7672
Guard.ArgumentNotNull(timerScheduler, nameof(timerScheduler));
7773

7874
this.service = service;
7975
this.modelServiceFactory = modelServiceFactory;
8076
this.draftStore = draftStore;
8177
this.gitService = gitService;
82-
this.AutoCompleteAdvisor = autoCompleteAdvisor;
8378
this.timerScheduler = timerScheduler;
8479

8580
this.WhenAnyValue(x => x.Branches)
@@ -339,9 +334,8 @@ protected string GetDraftKey()
339334
SourceBranch.Name);
340335
}
341336

342-
public RemoteRepositoryModel GitHubRepository => githubRepository?.Value;
343-
bool IsExecuting => isExecuting.Value;
344-
public IAutoCompleteAdvisor AutoCompleteAdvisor { get; }
337+
public RemoteRepositoryModel GitHubRepository { get { return githubRepository?.Value; } }
338+
bool IsExecuting { get { return isExecuting.Value; } }
345339

346340
bool initialized;
347341
bool Initialized

0 commit comments

Comments
 (0)