Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove some redundant usings #1332

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Humanizer.Tests.Shared/BitFieldEnumUnderTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;

namespace Humanizer.Tests
{
Expand Down
2 changes: 0 additions & 2 deletions src/Humanizer.Tests.Shared/DateOnlyHumanizeTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#if NET6_0_OR_GREATER

using System;
using Humanizer.Configuration;
using Humanizer.DateTimeHumanizeStrategy;
using Xunit;

namespace Humanizer.Tests
{
Expand Down
3 changes: 0 additions & 3 deletions src/Humanizer.Tests.Shared/FluentDate/InDateTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;

namespace Humanizer.Tests.FluentDate
{
public class InDateTests
Expand Down
3 changes: 0 additions & 3 deletions src/Humanizer.Tests.Shared/FluentDate/OnDateTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;

namespace Humanizer.Tests.FluentDate
{
public class OnDateTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;
using Humanizer.Localisation.TimeToClockNotation;
using Humanizer;

namespace Humanizer.Tests.Localisation.en
{
[UseCulture("en")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#if NET6_0_OR_GREATER

using System;

using Xunit;

namespace Humanizer.Tests.Localisation.es
{
[UseCulture("es-ES")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;

namespace Humanizer.Tests.Localisation.fr
{
[UseCulture("fr")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;

namespace Humanizer.Tests.Localisation.fr
{
[UseCulture("fr")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#if NET6_0_OR_GREATER

using System;

using Humanizer.Configuration;
using Humanizer.DateTimeHumanizeStrategy;

using Xunit;

namespace Humanizer.Tests.Localisation.@is
{
[UseCulture("is")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;
using Humanizer.Localisation.TimeToClockNotation;
using Humanizer;

namespace Humanizer.Tests.Localisation.ptBR
{
[UseCulture("pt-BR")]
Expand Down
2 changes: 0 additions & 2 deletions src/Humanizer.Tests.Shared/TimeOnlyHumanizeTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#if NET6_0_OR_GREATER

using System;
using Humanizer.Configuration;
using Humanizer.DateTimeHumanizeStrategy;
using Xunit;

namespace Humanizer.Tests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#if NET6_0_OR_GREATER

using System;

namespace Humanizer.Localisation.DateToOrdinalWords
{
internal class DefaultDateOnlyToOrdinalWordConverter : IDateOnlyToOrdinalWordConverter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#if NET6_0_OR_GREATER

using System;

using Humanizer.Configuration;

namespace Humanizer.Localisation.DateToOrdinalWords
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if NET6_0_OR_GREATER
using System;

namespace Humanizer.Localisation.DateToOrdinalWords
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#if NET6_0_OR_GREATER

using System;

namespace Humanizer.Localisation.DateToOrdinalWords
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if NET6_0_OR_GREATER
using System;

namespace Humanizer.Localisation.DateToOrdinalWords
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#if NET6_0_OR_GREATER

using System;

using Humanizer;

namespace Humanizer.Localisation.TimeToClockNotation
{
internal class BrazilianPortugueseTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#if NET6_0_OR_GREATER

using System;

using Humanizer;

namespace Humanizer.Localisation.TimeToClockNotation
{
internal class DefaultTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using System.Collections.Generic;

namespace Humanizer.Localisation.TimeToClockNotation
{
internal class EsTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#if NET6_0_OR_GREATER

using System;
using Humanizer;

namespace Humanizer.Localisation.TimeToClockNotation
{
internal class FrTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#if NET6_0_OR_GREATER

using System;

using Humanizer;

namespace Humanizer.Localisation.TimeToClockNotation
{
/// <summary>
Expand Down
4 changes: 0 additions & 4 deletions src/Humanizer/TimeOnlyToClockNotationExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#if NET6_0_OR_GREATER

using System;

using Humanizer;
using Humanizer.Configuration;
using Humanizer.Localisation.TimeToClockNotation;

namespace Humanizer
{
Expand Down