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

Commit 98e8241

Browse files
committed
Removed unused commands.
1 parent be15e94 commit 98e8241

File tree

3 files changed

+0
-50
lines changed

3 files changed

+0
-50
lines changed

src/GitHub.App/SampleData/PullRequestDetailViewModelDesigner.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ public PullRequestDetailViewModelDesigner()
9292
public ReactiveCommand<Unit> Pull { get; }
9393
public ReactiveCommand<Unit> Push { get; }
9494
public ReactiveCommand<object> OpenOnGitHub { get; }
95-
public ReactiveCommand<object> DiffFile { get; }
96-
public ReactiveCommand<object> DiffFileWithWorkingDirectory { get; }
97-
public ReactiveCommand<object> OpenFileInWorkingDirectory { get; }
98-
public ReactiveCommand<object> ViewFile { get; }
9995

10096
public Task InitializeAsync(ILocalRepositoryModel localRepository, IConnection connection, string owner, string repo, int number) => Task.CompletedTask;
10197

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ public PullRequestDetailViewModel(
117117
SubscribeOperationError(SyncSubmodules);
118118

119119
OpenOnGitHub = ReactiveCommand.Create();
120-
DiffFile = ReactiveCommand.Create();
121-
DiffFileWithWorkingDirectory = ReactiveCommand.Create(this.WhenAnyValue(x => x.IsCheckedOut));
122-
OpenFileInWorkingDirectory = ReactiveCommand.Create(this.WhenAnyValue(x => x.IsCheckedOut));
123-
ViewFile = ReactiveCommand.Create();
124120
}
125121

126122
/// <summary>
@@ -287,27 +283,6 @@ public Uri WebUrl
287283
/// </summary>
288284
public ReactiveCommand<object> OpenOnGitHub { get; }
289285

290-
/// <summary>
291-
/// Gets a command that diffs an <see cref="IPullRequestFileNode"/> between BASE and HEAD.
292-
/// </summary>
293-
public ReactiveCommand<object> DiffFile { get; }
294-
295-
/// <summary>
296-
/// Gets a command that diffs an <see cref="IPullRequestFileNode"/> between the version in
297-
/// the working directory and HEAD.
298-
/// </summary>
299-
public ReactiveCommand<object> DiffFileWithWorkingDirectory { get; }
300-
301-
/// <summary>
302-
/// Gets a command that opens an <see cref="IPullRequestFileNode"/> from disk.
303-
/// </summary>
304-
public ReactiveCommand<object> OpenFileInWorkingDirectory { get; }
305-
306-
/// <summary>
307-
/// Gets a command that opens an <see cref="IPullRequestFileNode"/> as it appears in the PR.
308-
/// </summary>
309-
public ReactiveCommand<object> ViewFile { get; }
310-
311286
/// <summary>
312287
/// Initializes the view model.
313288
/// </summary>

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -165,27 +165,6 @@ public interface IPullRequestDetailViewModel : IPanePageViewModel, IOpenInBrowse
165165
/// </summary>
166166
ReactiveCommand<object> OpenOnGitHub { get; }
167167

168-
/// <summary>
169-
/// Gets a command that diffs an <see cref="IPullRequestFileNode"/> between BASE and HEAD.
170-
/// </summary>
171-
ReactiveCommand<object> DiffFile { get; }
172-
173-
/// <summary>
174-
/// Gets a command that diffs an <see cref="IPullRequestFileNode"/> between the version in
175-
/// the working directory and HEAD.
176-
/// </summary>
177-
ReactiveCommand<object> DiffFileWithWorkingDirectory { get; }
178-
179-
/// <summary>
180-
/// Gets a command that opens an <see cref="IPullRequestFileNode"/> from disk.
181-
/// </summary>
182-
ReactiveCommand<object> OpenFileInWorkingDirectory { get; }
183-
184-
/// <summary>
185-
/// Gets a command that opens an <see cref="IPullRequestFileNode"/> as it appears in the PR.
186-
/// </summary>
187-
ReactiveCommand<object> ViewFile { get; }
188-
189168
/// <summary>
190169
/// Initializes the view model.
191170
/// </summary>

0 commit comments

Comments
 (0)