Skip to content

Commit

Permalink
remove some usings (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Feb 15, 2024
1 parent 5bc5680 commit 83e380f
Show file tree
Hide file tree
Showing 58 changed files with 47 additions and 167 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;

using Humanizer.Bytes;
using Humanizer.Bytes;
using Humanizer.Localisation;

using Xunit;

namespace Humanizer.Tests.Localisation.lb.Bytes;

[UseCulture("lb-LU")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace Humanizer.Tests.Localisation.lb.Bytes;
namespace Humanizer.Tests.Localisation.lb.Bytes;

[UseCulture("lb-LU")]
public class ByteSizeExtensionsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using Humanizer.Bytes;

using Xunit;

namespace Humanizer.Tests.Localisation.lb.Bytes;

[UseCulture("lb-LU")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using Humanizer.Bytes;

using Xunit;

namespace Humanizer.Tests.Localisation.lb.Bytes;

[UseCulture("lb-LU")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections.Generic;
using Xunit;

namespace Humanizer.Tests.Localisation.lb;
namespace Humanizer.Tests.Localisation.lb;

[UseCulture("lb-LU")]
public class CollectionFormatterTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Humanizer.Localisation;
using Xunit;

namespace Humanizer.Tests.Localisation.lb;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using Xunit;

namespace Humanizer.Tests.Localisation.lb;
namespace Humanizer.Tests.Localisation.lb;

[UseCulture("lb-LU")]
public class DateToOrdinalWordsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace Humanizer.Tests.Localisation.lb;
namespace Humanizer.Tests.Localisation.lb;

[UseCulture("lb-LU")]
public class NumberToWordsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace Humanizer.Tests.Localisation.lb;
namespace Humanizer.Tests.Localisation.lb;

[UseCulture("lb-LU")]
public class OrdinalizeTests
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.lb;

[UseCulture("lb-LU")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;

using Humanizer.Localisation;

using Xunit;
using Humanizer.Localisation;

namespace Humanizer.Tests.Localisation.lb;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#if NET6_0_OR_GREATER

using System;
using Xunit;

namespace Humanizer.Tests.Localisation.lb;
namespace Humanizer.Tests.Localisation.lb;

[UseCulture("lb-LU")]
public class TimeToClockNotationTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using Xunit;

namespace Humanizer.Tests.Localisation.lt
namespace Humanizer.Tests.Localisation.lt
{
[UseCulture("lt")]
public class DateToOrdinalWordsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Xunit;

namespace Humanizer.Tests.Localisation.lt
namespace Humanizer.Tests.Localisation.lt
{
[UseCulture("lt")]
public class NumberToWordsTests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using Humanizer.Localisation;
using Xunit;
using Humanizer.Localisation;

namespace Humanizer.Tests.Localisation.lt
{
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/Bytes/ByteRate.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

using Humanizer.Localisation;
using Humanizer.Localisation;

namespace Humanizer.Bytes
{
Expand Down
2 changes: 0 additions & 2 deletions src/Humanizer/Bytes/ByteSize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.

using System.Globalization;

using Humanizer.Configuration;
using Humanizer.Localisation;

Expand Down
3 changes: 1 addition & 2 deletions src/Humanizer/Configuration/Configurator.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Globalization;
using System.Reflection;
using System.Reflection;
using Humanizer.DateTimeHumanizeStrategy;
using Humanizer.Localisation.CollectionFormatters;
using Humanizer.Localisation.DateToOrdinalWords;
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/Configuration/FormatterRegistry.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

using Humanizer.Localisation.Formatters;
using Humanizer.Localisation.Formatters;

namespace Humanizer.Configuration
{
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/Configuration/LocaliserRegistry.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Configuration
namespace Humanizer.Configuration
{
/// <summary>
/// A registry of localised system components with their associated locales
Expand Down
3 changes: 1 addition & 2 deletions src/Humanizer/DateHumanizeExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Globalization;
using Humanizer.Configuration;
using Humanizer.Configuration;

namespace Humanizer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Globalization;
using Humanizer.Configuration;
using Humanizer.Configuration;
using Humanizer.Localisation;

namespace Humanizer.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
/// Implement this interface to create a new strategy for DateTime.Humanize and hook it in the Configurator.DateTimeHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
/// Implement this interface to create a new strategy for DateTime.Humanize and hook it in the Configurator.DateTimeOffsetHumanizeStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Globalization;

namespace Humanizer.DateTimeHumanizeStrategy
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/Humanizer/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using System.Globalization;
4 changes: 1 addition & 3 deletions src/Humanizer/HeadingExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

using Humanizer.Localisation;
using Humanizer.Localisation;

namespace Humanizer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Humanizer.Localisation.DateToOrdinalWords
namespace Humanizer.Localisation.DateToOrdinalWords
{
internal class LtDateToOrdinalWordsConverter : IDateToOrdinalWordConverter
{
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/Localisation/Formatters/DefaultFormatter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.Formatters
namespace Humanizer.Localisation.Formatters
{
/// <summary>
/// Default implementation of IFormatter interface.
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/Localisation/Formatters/IcelandicFormatter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.Formatters
namespace Humanizer.Localisation.Formatters
{
internal class IcelandicFormatter() :
DefaultFormatter(LocaleCode)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Globalization;
using System.Linq;

namespace Humanizer.Localisation.Formatters;
namespace Humanizer.Localisation.Formatters;

internal class LuxembourgishFormatter() :
DefaultFormatter(LocaleCode)
Expand Down
1 change: 0 additions & 1 deletion src/Humanizer/Localisation/Formatters/RomanianFormatter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Humanizer.Localisation.Formatters
{
using System;
using System.Globalization;

internal class RomanianFormatter() :
DefaultFormatter(RomanianCultureCode)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class CroatianNumberToWordsConverter : GenderlessNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class CzechNumberToWordsConverter : GenderedNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class DefaultNumberToWordsConverter : GenderlessNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class HebrewNumberToWordsConverter : GenderedNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

using Humanizer.Localisation.GrammaticalNumber;
using Humanizer.Localisation.GrammaticalNumber;

namespace Humanizer.Localisation.NumberToWords
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

using Humanizer.Localisation.Formatters;
using Humanizer.Localisation.Formatters;

namespace Humanizer.Localisation.NumberToWords;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class PolishNumberToWordsConverter : GenderedNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class SerbianCyrlNumberToWordsConverter : GenderlessNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class SerbianNumberToWordsConverter : GenderlessNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.NumberToWords
namespace Humanizer.Localisation.NumberToWords
{
internal class SlovenianNumberToWordsConverter : GenderlessNumberToWordsConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

namespace Humanizer.Localisation.Ordinalizers
namespace Humanizer.Localisation.Ordinalizers
{
internal class SpanishOrdinalizer : DefaultOrdinalizer
{
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/Localisation/ResourceKeys.DateHumanize.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Humanizer.Localisation
namespace Humanizer.Localisation
{
public partial class ResourceKeys
{
Expand Down
3 changes: 1 addition & 2 deletions src/Humanizer/Localisation/Resources.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Globalization;
using System.Reflection;
using System.Reflection;
using System.Resources;

namespace Humanizer.Localisation
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/NumberToWordsExtension.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

using Humanizer.Configuration;
using Humanizer.Configuration;

namespace Humanizer
{
Expand Down
4 changes: 1 addition & 3 deletions src/Humanizer/OrdinalizeExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;

using Humanizer.Configuration;
using Humanizer.Configuration;

namespace Humanizer
{
Expand Down
Loading

0 comments on commit 83e380f

Please sign in to comment.