Skip to content

Commit 007cd27

Browse files
committed
Remove unused private fields
1 parent fbdb573 commit 007cd27

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

OnTopic.Editor.AspNetCore.Host/SampleActivator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public class SampleActivator : IControllerActivator, IViewComponentActivator {
3737
private readonly ITopicRepository _topicRepository;
3838
private readonly IWebHostEnvironment _webHostEnvironment;
3939
private readonly StandardEditorComposer _standardEditorComposer;
40-
private readonly Topic _rootTopic;
4140

4241
/*==========================================================================================================================
4342
| CONSTRUCTOR
@@ -70,7 +69,7 @@ public SampleActivator(string connectionString, IWebHostEnvironment webHostEnvir
7069
_topicRepository = cachedTopicRepository;
7170
_typeLookupService = new EditorViewModelLookupService();
7271
_topicMappingService = new TopicMappingService(_topicRepository, _typeLookupService);
73-
_rootTopic = _topicRepository.Load();
72+
_ = _topicRepository.Load();
7473

7574
/*------------------------------------------------------------------------------------------------------------------------
7675
| Establish standard editor composer

OnTopic.Editor.Models/Metadata/TopicListAttributeTopicViewModel.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ namespace OnTopic.Editor.Models.Metadata {
1717
/// </summary>
1818
public class TopicListAttributeTopicViewModel: QueryableTopicListAttributeTopicViewModel {
1919

20-
/*==========================================================================================================================
21-
| PRIVATE VARIABLES
22-
\-------------------------------------------------------------------------------------------------------------------------*/
23-
private string? _valueProperty = null;
24-
2520
/*==========================================================================================================================
2621
| DEFAULT LABEL
2722
\-------------------------------------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)