Skip to content

Commit 8578757

Browse files
committed
Remove not needed using declarations
1 parent ca72b22 commit 8578757

40 files changed

Lines changed: 15 additions & 195 deletions

WebUntisAPI.Client/Converter/ClassJsonConverter.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
using Newtonsoft.Json.Linq;
33
using System;
44
using System.Collections.Generic;
5-
using System.IO;
6-
using System.Linq;
7-
using System.Runtime.Serialization.Formatters;
8-
using System.Text;
9-
using System.Threading.Tasks;
105
using WebUntisAPI.Client.Models;
116

127
namespace WebUntisAPI.Client.Converter

WebUntisAPI.Client/Converter/ColorJsonConverter.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
using Newtonsoft.Json;
22
using Newtonsoft.Json.Linq;
33
using System;
4-
using System.Collections.Generic;
54
using System.Drawing;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Text.RegularExpressions;
9-
using System.Threading.Tasks;
105
using WebUntisAPI.Client.Extensions;
116

127
namespace WebUntisAPI.Client.Converter

WebUntisAPI.Client/Converter/DateJsonConverter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using Newtonsoft.Json;
22
using Newtonsoft.Json.Linq;
33
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
84
using WebUntisAPI.Client.Extensions;
95

106
namespace WebUntisAPI.Client.Converter

WebUntisAPI.Client/Converter/StatusDataJsonConverter.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
using Newtonsoft.Json.Linq;
33
using System;
44
using System.Collections.Generic;
5-
using System.Drawing;
65
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
96
using WebUntisAPI.Client.Models;
107

118
namespace WebUntisAPI.Client.Converter

WebUntisAPI.Client/Converter/TimeJsonConverter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using Newtonsoft.Json;
22
using Newtonsoft.Json.Linq;
33
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
84
using WebUntisAPI.Client.Extensions;
95

106
namespace WebUntisAPI.Client.Converter

WebUntisAPI.Client/Converter/TimegridJsonConverter.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
8-
using WebUntisAPI.Client.Extensions;
96
using WebUntisAPI.Client.Models;
107

118
namespace WebUntisAPI.Client.Converter

WebUntisAPI.Client/Converter/TimetableRequestModelJsonConverter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using Newtonsoft.Json;
22
using Newtonsoft.Json.Linq;
33
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
84
using WebUntisAPI.Client.Extensions;
95
using WebUntisAPI.Client.Models;
106

WebUntisAPI.Client/Enums.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
using Newtonsoft.Json;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
72

83
namespace WebUntisAPI.Client
94
{

WebUntisAPI.Client/Exceptions/WebUntisException.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
using Newtonsoft.Json;
22
using System;
3-
using System.Collections.Generic;
43
using System.Diagnostics;
5-
using System.Linq;
6-
using System.Runtime.Serialization;
7-
using System.Text;
8-
using System.Threading.Tasks;
94

105
namespace WebUntisAPI.Client.Exceptions
116
{

WebUntisAPI.Client/Extensions/ColorExtensions.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62
using System.Drawing;
73
using System.Text.RegularExpressions;
84

@@ -34,7 +30,7 @@ public static Color FromHexColorFormat(this Color color, string colorString)
3430
{
3531
if (!Regex.IsMatch(colorString, @"[\da-fA-F]{6}"))
3632
throw new ArgumentException("The color string isn't in a correct format", nameof(colorString));
37-
33+
3834
// Convert the hex string to the single color channels
3935
int red = Convert.ToByte(colorString.Substring(0, 2), 16);
4036
int green = Convert.ToByte(colorString.Substring(2, 2), 16);

0 commit comments

Comments
 (0)