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

Commit db3f01a

Browse files
Cleaning up more code
1 parent 34ac1d2 commit db3f01a

File tree

4 files changed

+41
-162
lines changed

4 files changed

+41
-162
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ public async Task InitializeAsync(
123123
{
124124
subscriptions.Add(file.WhenAnyValue(x => x.InlineCommentThreads)
125125
.Subscribe(x => node.CommentCount = CountComments(x, filter)));
126-
127-
subscriptions.Add(file.WhenAnyValue(x => x.InlineAnnotations)
128-
.Subscribe(x =>
129-
{
130-
var count = x.Count(model => model.AnnotationLevel == CheckAnnotationLevel.Failure);
131-
132-
node.AnnotationErrorCount = count;
133-
node.AnnotationWarningCount = x.Count - count;
134-
}));
135126
}
136127

137128
var dir = GetDirectory(Path.GetDirectoryName(node.RelativePath), dirs);

src/GitHub.Exports.Reactive/Models/IPullRequestSessionFile.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ public interface IPullRequestSessionFile : INotifyPropertyChanged
5454
/// </summary>
5555
IReadOnlyList<IInlineCommentThreadModel> InlineCommentThreads { get; }
5656

57-
/// <summary>
58-
/// Gets the inline annotations for the file.
59-
/// </summary>
60-
IReadOnlyList<IInlineAnnotationModel> InlineAnnotations { get; }
61-
6257
/// <summary>
6358
/// Gets an observable that is raised with a collection of 0-based line numbers when the
6459
/// review comments on the file are changed.

test/GitHub.InlineReviews.UnitTests/GitHub.InlineReviews.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<Compile Include="Models\DiffUtilitiesTests.cs" />
115115
<Compile Include="Services\PullRequestSessionManagerTests.cs" />
116116
<Compile Include="Services\PullRequestSessionServiceTests.cs" />
117-
<Compile Include="Tags\InlineTaggerTests.cs" />
117+
<Compile Include="Tags\InlineCommentTaggerTests.cs" />
118118
<Compile Include="TestDoubles\FakeDiffService.cs" />
119119
<Compile Include="Properties\AssemblyInfo.cs" />
120120
<Compile Include="Properties\Resources.Designer.cs">

0 commit comments

Comments
 (0)