Skip to content

Commit db31074

Browse files
authored
Merge pull request #35 from kenelight4u/bugfix/cleanup
feat: removed unused using statements in codebase
2 parents 71a61f5 + a8c76e0 commit db31074

8 files changed

Lines changed: 9 additions & 24 deletions

File tree

src/Encryption/AesEncryption/BaseAesEncryption.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using SafeCrypt.Models;
22
using System;
33
using System.IO;
4-
using System.Reflection;
54
using System.Security.Cryptography;
6-
using System.Text;
75

86
namespace SafeCrypt.AesEncryption
97
{
@@ -106,7 +104,6 @@ internal static byte[] DecryptAES(ByteDecryptionParameters param)
106104
}
107105
catch (Exception ex)
108106
{
109-
110107
throw;
111108
}
112109
}

src/Encryption/AesEncryption/Models/ByteEncryptionParameters.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel.DataAnnotations;
4-
using System.Text;
1+
using System.ComponentModel.DataAnnotations;
52

63
namespace SafeCrypt.Models
74
{

src/Encryption/AesEncryption/Models/Decrypt/DecryptionData.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
1+
using System.Collections.Generic;
42

53
namespace SafeCrypt.Models
64
{

src/Encryption/AesEncryption/Models/Encrypt/EncryptionData.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
1+
using System.Collections.Generic;
42

53
namespace SafeCrypt.Models
64
{
@@ -25,6 +23,7 @@ public class EncryptionData
2523
public string SecretKey { get; set; }
2624

2725
public bool HasError { get; set; }
26+
2827
public List<string> Errors { get; set; } = new List<string>();
2928
}
3029
}

src/Encryption/AesEncryption/Models/Encrypt/EncryptionParameters.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.ComponentModel.DataAnnotations;
4-
using System.Text;
1+
using System.ComponentModel.DataAnnotations;
2+
53

64
namespace SafeCrypt.Models
75
{

src/Enums/ReturnType.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
4-
5-
namespace SafeCrypt.Enums
1+
namespace SafeCrypt.Enums
62
{
73
public enum ReturnType
84
{

src/Helpers/Converters.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public static byte[] HexadecimalStringToByteArray(this string input)
3737
}
3838
return output;
3939
}
40+
4041
/// <summary>
4142
/// Converts a string to its hexadecimal representation.
4243
/// </summary>

src/Helpers/Validators.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using SafeCrypt.Models;
22
using System;
3-
using System.Collections.Generic;
4-
using System.Text;
53

64
namespace SafeCrypt.Helpers
75
{
@@ -37,6 +35,7 @@ public static void ValidateNotNull(EncryptionParameters parameters)
3735
throw new ArgumentNullException(nameof(parameters.IV), "IV property cannot be null.");
3836
}
3937
}
38+
4039
public static void ValidateNotNull(DecryptionParameters parameters)
4140
{
4241
if (parameters == null)

0 commit comments

Comments
 (0)