Skip to content

Commit

Permalink
EHD-457: Upgrade .Net: Remove unused imports & redundant type qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgriff committed Dec 4, 2024
1 parent c38ee84 commit b2d4806
Show file tree
Hide file tree
Showing 349 changed files with 430 additions and 997 deletions.
3 changes: 1 addition & 2 deletions GenderPayGap.Core/Classes/Logger/CustomLogger.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json;
using Serilog;

namespace GenderPayGap.Core.Classes.Logger
Expand Down
1 change: 0 additions & 1 deletion GenderPayGap.Core/Enums.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;

namespace GenderPayGap.Core
Expand Down
4 changes: 1 addition & 3 deletions GenderPayGap.Core/Extensions/AspNetCore/Config.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using Microsoft.Extensions.Configuration;

namespace GenderPayGap.Extensions.AspNetCore
Expand Down
5 changes: 1 addition & 4 deletions GenderPayGap.Core/Extensions/Encryption.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Diagnostics;
using System.IO.Compression;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using GenderPayGap.Core;
Expand Down
4 changes: 1 addition & 3 deletions GenderPayGap.Core/Extensions/VirtualDateTime.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace GenderPayGap.Extensions
namespace GenderPayGap.Extensions
{
public static class VirtualDateTime
{
Expand Down
5 changes: 1 addition & 4 deletions GenderPayGap.Core/Global.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GenderPayGap.Extensions.AspNetCore;
using GenderPayGap.Extensions.AspNetCore;
using Newtonsoft.Json;

namespace GenderPayGap.Core
Expand Down
5 changes: 1 addition & 4 deletions GenderPayGap.Core/Helpers/ReportingYearsHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GenderPayGap.Extensions;
using GenderPayGap.Extensions;

namespace GenderPayGap.Core.Helpers
{
Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Backup/AllData.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using GenderPayGap.Database.Models;
using GenderPayGap.Database.Models;
using Newtonsoft.Json;

namespace GenderPayGap.Database.Backup
Expand Down
3 changes: 0 additions & 3 deletions GenderPayGap.Database/GpgDatabaseContext.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using GenderPayGap.Database.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
Expand Down
2 changes: 0 additions & 2 deletions GenderPayGap.Database/Models/AuditLog.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using GenderPayGap.Core;
using Newtonsoft.Json;
Expand Down
4 changes: 1 addition & 3 deletions GenderPayGap.Database/Models/DraftReturn.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using GenderPayGap.Core;
using GenderPayGap.Core;
using Newtonsoft.Json;

namespace GenderPayGap.Database.Models
Expand Down
3 changes: 0 additions & 3 deletions GenderPayGap.Database/Models/Extensions/Organisation.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using GenderPayGap.Core;
using GenderPayGap.Core.Helpers;
using GenderPayGap.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;

namespace GenderPayGap.Database
{
public static class OrganisationAddressExtensions
Expand Down
1 change: 0 additions & 1 deletion GenderPayGap.Database/Models/Extensions/Return.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using GenderPayGap.Core;
using GenderPayGap.Core.Helpers;
Expand Down
2 changes: 0 additions & 2 deletions GenderPayGap.Database/Models/Extensions/User.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
using System.Linq;
using System.Security.Cryptography;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
Expand Down
3 changes: 0 additions & 3 deletions GenderPayGap.Database/Models/Extensions/UserOrganisation.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using GenderPayGap.Core;
using GenderPayGap.Extensions;

Expand Down
1 change: 0 additions & 1 deletion GenderPayGap.Database/Models/Feedback.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.ComponentModel.DataAnnotations;
using GenderPayGap.Core;
using Newtonsoft.Json;
Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/InactiveUserOrganisation.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
4 changes: 1 addition & 3 deletions GenderPayGap.Database/Models/Organisation.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/OrganisationAddress.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/OrganisationName.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Extensions;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

namespace GenderPayGap.Database
Expand Down
2 changes: 0 additions & 2 deletions GenderPayGap.Database/Models/OrganisationPublicSectorType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/OrganisationScope.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/OrganisationSicCode.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Extensions;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

namespace GenderPayGap.Database
Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/OrganisationStatus.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/PublicSectorType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json;

namespace GenderPayGap.Database
{
Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/ReminderEmail.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations.Schema;
using GenderPayGap.Core;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/Return.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/SicCode.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json;

namespace GenderPayGap.Database
{
Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/SicSection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json;

namespace GenderPayGap.Database
{
Expand Down
4 changes: 1 addition & 3 deletions GenderPayGap.Database/Models/User.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Database.Models;
using GenderPayGap.Extensions;
using Newtonsoft.Json;
Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/UserOrganisation.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
3 changes: 1 addition & 2 deletions GenderPayGap.Database/Models/UserStatus.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Extensions;
using Newtonsoft.Json;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.ComponentModel;
using System.Security.Claims;
using GenderPayGap.Core.Classes;
using GenderPayGap.Core.Interfaces;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Core.Helpers;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.WebUI.Helpers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using GenderPayGap.Database;
using GenderPayGap.Database;
using GenderPayGap.Extensions;

namespace GenderPayGap.WebUI.Tests.Builders
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System.Linq;
using GenderPayGap.Core.Classes;
using GenderPayGap.Core.Classes;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.Tests.Common.Classes;
using GenderPayGap.WebUI.Services;
using GenderPayGap.WebUI.Tests.TestHelpers;
using Moq;
using NUnit.Framework;

namespace Repositories.RegistrationRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System.Linq;
using GenderPayGap.Core.Classes;
using GenderPayGap.Core.Classes;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.Tests.Common.Classes;
using GenderPayGap.WebUI.Services;
using GenderPayGap.WebUI.Tests.TestHelpers;
using Moq;
using NUnit.Framework;

namespace Repositories.UserRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.WebUI.Helpers;
using GenderPayGap.WebUI.Repositories;
using GenderPayGap.WebUI.Services;
using Moq;
using NUnit.Framework;

namespace Repositories.UserRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
using System.Linq;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.Tests.Common.Classes;
using GenderPayGap.Tests.Common.TestHelpers;
using GenderPayGap.WebUI.Repositories;
using GenderPayGap.WebUI.Services;
using GenderPayGap.WebUI.Tests.TestHelpers;
using Moq;
using NUnit.Framework;

namespace Repositories.UserRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.Tests.Common.Classes;
using GenderPayGap.Tests.Common.TestHelpers;
using GenderPayGap.WebUI.Repositories;
using GenderPayGap.WebUI.Services;
using GenderPayGap.WebUI.Tests.TestHelpers;
using Moq;
using NUnit.Framework;

namespace Repositories.UserRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.Tests.Common.Classes;
using GenderPayGap.Tests.Common.TestHelpers;
using GenderPayGap.WebUI.Repositories;
using GenderPayGap.WebUI.Services;
using GenderPayGap.WebUI.Tests.TestHelpers;
using Moq;
using NUnit.Framework;

namespace Repositories.UserRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
using System;
using GenderPayGap.Core;
using GenderPayGap.Core;
using GenderPayGap.Core.Interfaces;
using GenderPayGap.Database;
using GenderPayGap.Extensions;
using GenderPayGap.Tests.Common.Classes;
using GenderPayGap.Tests.Common.TestHelpers;
using GenderPayGap.WebUI.Helpers;
using GenderPayGap.WebUI.Repositories;
using GenderPayGap.WebUI.Services;
using GenderPayGap.WebUI.Tests.TestHelpers;
using Moq;
using NUnit.Framework;

namespace Repositories.UserRepository
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using GenderPayGap.Core;
using NUnit.Framework;
using GenderPayGap.Core;

namespace GenderPayGap.BusinessLogic.Tests.Services
{
Expand Down
Loading

0 comments on commit b2d4806

Please sign in to comment.