Skip to content

Commit 6711249

Browse files
committed
Running code cleanup
1 parent c007552 commit 6711249

21 files changed

+32
-71
lines changed

ResXManager.Infrastructure/ICredentialItem.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
namespace tomenglertde.ResXManager.Infrastructure
22
{
3-
using System;
43
using System.ComponentModel;
5-
using System.Diagnostics.Contracts;
64

75
using JetBrains.Annotations;
86

9-
using PropertyChanged;
10-
117
public interface ICredentialItem : INotifyPropertyChanged
128
{
139
[NotNull]

ResXManager.Infrastructure/ITracer.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
using TomsToolbox.Desktop.Composition;
1515

16-
[ContractClass(typeof(TracerContract))]
1716
public interface ITracer
1817
{
1918
void TraceError([Localizable(false)][NotNull] string value);
@@ -23,28 +22,6 @@ public interface ITracer
2322
void WriteLine([Localizable(false)][NotNull] string value);
2423
}
2524

26-
[ContractClassFor(typeof(ITracer))]
27-
internal abstract class TracerContract : ITracer
28-
{
29-
void ITracer.TraceError(string value)
30-
{
31-
Contract.Requires(value != null);
32-
throw new System.NotImplementedException();
33-
}
34-
35-
void ITracer.TraceWarning(string value)
36-
{
37-
Contract.Requires(value != null);
38-
throw new System.NotImplementedException();
39-
}
40-
41-
void ITracer.WriteLine(string value)
42-
{
43-
Contract.Requires(value != null);
44-
throw new System.NotImplementedException();
45-
}
46-
}
47-
4825
public static class TracerExtensions
4926
{
5027
public static void TraceError([NotNull] this ITracer tracer, [Localizable(false)][NotNull] string format, [NotNull][ItemNotNull] params object[] args)

ResXManager.Model/CodeReferenceTracker.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ internal CodeReference([NotNull] ProjectFile projectFile, int lineNumber, [NotNu
373373
LineSegments = lineSegments;
374374
}
375375

376-
public int LineNumber { get; private set; }
376+
public int LineNumber { get; }
377377

378378
[CanBeNull]
379-
public ProjectFile ProjectFile { get; private set; }
379+
public ProjectFile ProjectFile { get; }
380380

381381
[ItemNotNull]
382382
[CanBeNull]
383-
public IList<string> LineSegments { get; private set; }
383+
public IList<string> LineSegments { get; }
384384
}
385385

386386
internal static class CodeReferenceExtensionMethods

ResXManager.Model/ExcelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Diagnostics.Contracts;
88
using System.Globalization;
99
using System.Linq;
10-
using System.Text;
10+
1111
using DocumentFormat.OpenXml;
1212
using DocumentFormat.OpenXml.Packaging;
1313
using DocumentFormat.OpenXml.Spreadsheet;

ResXManager.VSIX/FodyWeavers.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Weavers>
3-
<AutoProperties/>
4-
<Throttle/>
5-
<PropertyChanged/>
6-
<LoadAssembliesOnStartup IncludeAssemblies="System.Windows.Interactivity|Microsoft.Expression.Interactions|DataGridExtensions"/>
3+
<AutoProperties />
4+
<Throttle />
5+
<PropertyChanged />
6+
<LoadAssembliesOnStartup IncludeAssemblies="System.Windows.Interactivity|Microsoft.Expression.Interactions|DataGridExtensions" />
77
</Weavers>

ResXManager.VSIX/ItemKind.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using JetBrains.Annotations;
2-
31
namespace tomenglertde.ResXManager.VSIX
42
{
3+
using JetBrains.Annotations;
4+
55
using Microsoft.VisualStudio;
66

77
internal static class ItemKind

ResXManager.VSIX/MyToolWindow.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using System.Windows.Controls;
1616
using System.Windows.Controls.Primitives;
1717
using System.Windows.Documents;
18-
using System.Windows.Threading;
1918

2019
using JetBrains.Annotations;
2120

ResXManager.VSIX/OutputWindowTracer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace tomenglertde.ResXManager.VSIX
22
{
33
using System;
4-
using System.ComponentModel.Composition;
54
using System.Diagnostics;
65
using System.Diagnostics.CodeAnalysis;
76
using System.Diagnostics.Contracts;

ResXManager.VSIX/Visuals/ShowErrorsConfigurationView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<TextBlock Text="{x:Static properties:Resources.ShowErrorsConfiguration_ShowAs}" DockPanel.Dock="Left" VerticalAlignment="Center" />
1717
<Decorator Width="8" DockPanel.Dock="Left" />
1818
<ComboBox ItemsSource="{Binding Source={x:Type shell:TaskErrorCategory}, Converter={x:Static toms:EnumToValuesConverter.Default}}"
19-
SelectedItem="{Binding Configuration.TaskErrorCategory}"
20-
Width="200" HorizontalAlignment="Left"/>
19+
SelectedItem="{Binding Configuration.TaskErrorCategory}"
20+
Width="200" HorizontalAlignment="Left" />
2121
</DockPanel>
2222
</StackPanel>
2323
</UserControl>

ResXManager.VSIX/Visuals/ShowErrorsConfigurationViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace tomenglertde.ResXManager.VSIX.Visuals
22
{
3-
using System.ComponentModel;
43
using System.ComponentModel.Composition;
54

65
using JetBrains.Annotations;

0 commit comments

Comments
 (0)