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

Commit 1fae823

Browse files
committed
Remove useless code
1 parent 37f8925 commit 1fae823

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

src/GitHub.App/ViewModels/LoginControlViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public LoginControlViewModel(
4848
AuthenticationResults = Observable.Merge(
4949
loginToGitHubViewModel.Login,
5050
EnterpriseLogin.Login);
51-
CancelCommand = ReactiveCommand.Create();
5251
}
5352

5453
ILoginToGitHubViewModel github;

src/GitHub.App/ViewModels/PullRequestListViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public PullRequestListViewModel(IRepositoryHost repositoryHost, ISimpleRepositor
4141
this.repositoryHost = repositoryHost;
4242
this.repository = repository;
4343

44-
CancelCommand = ReactiveCommand.Create();
4544
openPullRequestCommand = ReactiveCommand.Create();
4645
openPullRequestCommand.Subscribe(_ =>
4746
{

src/GitHub.App/ViewModels/TwoFactorDialogViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public TwoFactorDialogViewModel(
4242
(code, busy) => !string.IsNullOrEmpty(code.Value) && code.Value.Length == 6 && !busy.Value);
4343

4444
OkCommand = ReactiveCommand.Create(canVerify);
45-
CancelCommand = ReactiveCommand.Create();
4645
NavigateLearnMore = ReactiveCommand.Create();
4746
NavigateLearnMore.Subscribe(x => browser.OpenUrl(GitHubUrls.TwoFactorLearnMore));
4847
//TODO: ShowHelpCommand.Subscribe(x => browser.OpenUrl(twoFactorHelpUri));

src/GitHub.VisualStudio/UI/Views/LoggedOutViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ namespace GitHub.VisualStudio.UI.Views
99
[PartCreationPolicy(CreationPolicy.NonShared)]
1010
public class LoggedOutViewModel : BaseViewModel
1111
{
12-
[ImportingConstructor]
1312
public LoggedOutViewModel()
1413
{
15-
CancelCommand = ReactiveCommand.Create();
1614
}
1715
}
1816
}

0 commit comments

Comments
 (0)