Skip to content

Commit ba91a27

Browse files
committed
Cleanup imports
1 parent 61ea7e2 commit ba91a27

21 files changed

+16
-49
lines changed

LibGit2Sharp.Tests/FilterFixture.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ public void CanFilterLargeFiles()
238238

239239
private unsafe bool CharArrayAreEqual(char[] array1, char[] array2, int count)
240240
{
241-
if (Object.ReferenceEquals(array1, array2))
241+
if (ReferenceEquals(array1, array2))
242242
{
243243
return true;
244244
}
245-
if (Object.ReferenceEquals(array1, null) || Object.ReferenceEquals(null, array2))
245+
if (ReferenceEquals(array1, null) || ReferenceEquals(null, array2))
246246
{
247247
return false;
248248
}

LibGit2Sharp.Tests/TestHelpers/Constants.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Diagnostics;
33
using System.IO;
44
using System.Reflection;
5+
using System.Security;
56
using LibGit2Sharp.Core;
67

78
namespace LibGit2Sharp.Tests.TestHelpers
@@ -90,11 +91,11 @@ private static string UnwrapUnixTempPath()
9091
}
9192

9293
// To help with creating secure strings to test with.
93-
private static System.Security.SecureString StringToSecureString(string str)
94+
private static SecureString StringToSecureString(string str)
9495
{
9596
var chars = str.ToCharArray();
9697

97-
var secure = new System.Security.SecureString();
98+
var secure = new SecureString();
9899
for (var i = 0; i < chars.Length; i++)
99100
{
100101
secure.AppendChar(chars[i]);

LibGit2Sharp.Tests/TestHelpers/TestRemoteRefs.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
53

64
namespace LibGit2Sharp.Tests.TestHelpers
75
{

LibGit2Sharp/CherryPickOptions.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using LibGit2Sharp.Core;
2-
using LibGit2Sharp.Handlers;
3-
4-
namespace LibGit2Sharp
1+
namespace LibGit2Sharp
52
{
63
/// <summary>
74
/// Options controlling CherryPick behavior.

LibGit2Sharp/Core/GitFilter.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Runtime.InteropServices;
3+
34
namespace LibGit2Sharp.Core
45
{
56
/// <summary>

LibGit2Sharp/Core/NativeMethods.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Globalization;
33
using System.IO;
4-
using System.Reflection;
54
using System.Runtime.CompilerServices;
65
using System.Runtime.ConstrainedExecution;
76
using System.Runtime.InteropServices;

LibGit2Sharp/Handlers.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32

43
namespace LibGit2Sharp.Handlers
54
{

LibGit2Sharp/MergeAndCheckoutOptionsBase.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using LibGit2Sharp.Core;
22
using LibGit2Sharp.Handlers;
3-
using System;
43

54
namespace LibGit2Sharp
65
{

LibGit2Sharp/MergeConflictException.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
52

63
namespace LibGit2Sharp
74
{

LibGit2Sharp/MergeOptions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using LibGit2Sharp.Core;
3-
using LibGit2Sharp.Handlers;
42

53
namespace LibGit2Sharp
64
{

LibGit2Sharp/MergeTreeOptions.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using LibGit2Sharp.Core;
2-
using LibGit2Sharp.Handlers;
3-
using System;
4-
5-
namespace LibGit2Sharp
1+
namespace LibGit2Sharp
62
{
73
/// <summary>
84
/// Options controlling the behavior of two trees being merged.

LibGit2Sharp/MergeTreeResult.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using LibGit2Sharp.Core;
1+
using System.Collections.Generic;
42

53
namespace LibGit2Sharp
64
{

LibGit2Sharp/PushUpdate.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.InteropServices;
32
using LibGit2Sharp.Core;
43

54
namespace LibGit2Sharp

LibGit2Sharp/RecurseSubmodulesException.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.Serialization;
32

43
namespace LibGit2Sharp
54
{

LibGit2Sharp/RemoteUpdater.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections;
33
using System.Collections.Generic;
4-
using System.Linq;
54
using LibGit2Sharp.Core;
65
using LibGit2Sharp.Core.Handles;
76

LibGit2Sharp/RepositoryOperationContext.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
6-
namespace LibGit2Sharp
1+
namespace LibGit2Sharp
72
{
83
/// <summary>
94
/// Class to convey information about the repository that is being operated on

LibGit2Sharp/RevertOptions.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using LibGit2Sharp.Core;
2-
using LibGit2Sharp.Handlers;
3-
4-
namespace LibGit2Sharp
1+
namespace LibGit2Sharp
52
{
63
/// <summary>
74
/// Options controlling Revert behavior.

LibGit2Sharp/SecureUsernamePasswordCredentials.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
2-
using LibGit2Sharp.Core;
3-
using System.Security;
42
using System.Runtime.InteropServices;
3+
using System.Security;
4+
using LibGit2Sharp.Core;
55

66
namespace LibGit2Sharp
77
{

LibGit2Sharp/StashApplyOptions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using LibGit2Sharp.Core;
32
using LibGit2Sharp.Handlers;
43

54
namespace LibGit2Sharp

LibGit2Sharp/StashApplyProgress.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace LibGit2Sharp
1+
namespace LibGit2Sharp
42
{
53
/// <summary>
64
/// The current progress of the stash application.

LibGit2Sharp/StashApplyStatus.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace LibGit2Sharp
1+
namespace LibGit2Sharp
42
{
53
/// <summary>
64
/// The result of a stash application operation.

0 commit comments

Comments
 (0)