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

Commit dc1209c

Browse files
committed
Removed unused stuff.
1 parent c2ec33d commit dc1209c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public sealed class GitHubPaneViewModel : ViewModelBase, IGitHubPaneViewModel, I
3535
readonly ISimpleApiClientFactory apiClientFactory;
3636
readonly IConnectionManager connectionManager;
3737
readonly ITeamExplorerContext teamExplorerContext;
38-
readonly IVisualStudioBrowser browser;
39-
readonly IUsageTracker usageTracker;
4038
readonly INavigationViewModel navigator;
4139
readonly ILoggedOutViewModel loggedOut;
4240
readonly INotAGitHubRepositoryViewModel notAGitHubRepository;
@@ -45,8 +43,6 @@ public sealed class GitHubPaneViewModel : ViewModelBase, IGitHubPaneViewModel, I
4543
readonly ObservableAsPropertyHelper<ContentOverride> contentOverride;
4644
readonly ObservableAsPropertyHelper<bool> isSearchEnabled;
4745
readonly ObservableAsPropertyHelper<string> title;
48-
readonly ReactiveCommand<object> navigateBack;
49-
readonly ReactiveCommand<object> navigateForward;
5046
readonly ReactiveCommand<Unit> refresh;
5147
readonly ReactiveCommand<Unit> showPullRequests;
5248
readonly ReactiveCommand<object> openInBrowser;
@@ -85,8 +81,6 @@ public GitHubPaneViewModel(
8581
this.apiClientFactory = apiClientFactory;
8682
this.connectionManager = connectionManager;
8783
this.teamExplorerContext = teamExplorerContext;
88-
this.browser = browser;
89-
this.usageTracker = usageTracker;
9084
this.navigator = navigator;
9185
this.loggedOut = loggedOut;
9286
this.notAGitHubRepository = notAGitHubRepository;
@@ -130,14 +124,6 @@ public GitHubPaneViewModel(
130124
.Select(x => x is ISearchablePageViewModel)
131125
.ToProperty(this, x => x.IsSearchEnabled);
132126

133-
navigateBack = ReactiveCommand.CreateCombined(
134-
currentPage.Select(x => x != null),
135-
navigator.NavigateBack);
136-
137-
navigateForward = ReactiveCommand.CreateCombined(
138-
currentPage.Select(x => x != null),
139-
navigator.NavigateForward);
140-
141127
refresh = ReactiveCommand.CreateAsyncTask(
142128
currentPage.SelectMany(x => x?.WhenAnyValue(
143129
y => y.IsLoading,

0 commit comments

Comments
 (0)