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

Commit 8ae5a0b

Browse files
committed
The PR viewmodel doesn't need to expose the notification service
1 parent 5670ee1 commit 8ae5a0b

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

src/GitHub.App/SampleData/PullRequestCreationViewModelDesigner.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
using System.Collections.Generic;
44
using GitHub.Models;
55
using GitHub.Validation;
6-
using System;
7-
using System.Windows.Input;
86
using ReactiveUI;
9-
using GitHub.Services;
107

118
namespace GitHub.SampleData
129
{
@@ -48,7 +45,6 @@ public PullRequestCreationViewModelDesigner()
4845
public ReactivePropertyValidator TitleValidator { get; }
4946

5047
public ReactivePropertyValidator BranchValidator { get; }
51-
public INotificationService Notifications { get; }
5248

5349
}
5450
}

src/GitHub.App/ViewModels/PullRequestCreationViewModel.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
using GitHub.Validation;
1313
using GitHub.Extensions;
1414
using NullGuard;
15-
using GitHub.UserErrors;
16-
using System.Globalization;
17-
using GitHub.App;
1815

1916
namespace GitHub.ViewModels
2017
{
@@ -37,7 +34,6 @@ public PullRequestCreationViewModel(IRepositoryHost repositoryHost, ISimpleRepos
3734
{
3835
this.repositoryHost = repositoryHost;
3936
this.activeRepo = activeRepo;
40-
this.Notifications = notifications;
4137

4238
var repo = GitService.GitServiceHelper.GetRepo(activeRepo.LocalPath);
4339
this.WhenAny(x => x.Branches, x => x.Value)
@@ -93,7 +89,6 @@ public override void Initialize([AllowNull] ViewWithData data)
9389
.Subscribe(x => Branches = x);
9490
}
9591

96-
9792
IBranch sourceBranch;
9893
[AllowNull]
9994
public IBranch SourceBranch
@@ -152,8 +147,5 @@ ReactivePropertyValidator BranchValidator
152147
get { return branchValidator; }
153148
set { this.RaiseAndSetIfChanged(ref branchValidator, value); }
154149
}
155-
156-
public INotificationService Notifications { get; }
157-
158150
}
159151
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using GitHub.Models;
2-
using GitHub.UI;
32
using System.Collections.Generic;
4-
using System.Windows.Input;
53
using GitHub.Validation;
64
using ReactiveUI;
7-
using GitHub.Services;
85

96
namespace GitHub.ViewModels
107
{
@@ -16,7 +13,5 @@ public interface IPullRequestCreationViewModel : IReactiveViewModel
1613
IReactiveCommand<IPullRequestModel> CreatePullRequest { get; }
1714
string PRTitle { get; set; }
1815
ReactivePropertyValidator TitleValidator { get; }
19-
INotificationService Notifications { get; }
20-
2116
}
2217
}

0 commit comments

Comments
 (0)