From 878fa70af2651afe225009f3c843476ff881020e Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sat, 17 Feb 2024 00:02:21 +1100 Subject: [PATCH] remove redundant partials --- src/Humanizer/FluentDate/On.Days.cs | 4 +--- src/Humanizer/FluentDate/On.Days.tt | 2 +- src/Humanizer/FluentDate/OnDate.Days.cs | 4 +--- src/Humanizer/FluentDate/OnDate.Days.tt | 4 +--- src/Humanizer/Localisation/ResourceKeys.Common.cs | 3 --- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/Humanizer/FluentDate/On.Days.cs b/src/Humanizer/FluentDate/On.Days.cs index b47569728..4490c4718 100644 --- a/src/Humanizer/FluentDate/On.Days.cs +++ b/src/Humanizer/FluentDate/On.Days.cs @@ -2,7 +2,7 @@ /// /// -public partial class On +public class On { /// /// Provides fluent date accessors for January @@ -213,7 +213,6 @@ public class February public static DateTime The(int dayNumber) => new(DateTime.Now.Year, 2, dayNumber); - /// /// The 1st day of February of the current year /// @@ -399,7 +398,6 @@ public class March public static DateTime The(int dayNumber) => new(DateTime.Now.Year, 3, dayNumber); - /// /// The 1st day of March of the current year /// diff --git a/src/Humanizer/FluentDate/On.Days.tt b/src/Humanizer/FluentDate/On.Days.tt index cf90b9e3e..f3fbbce17 100644 --- a/src/Humanizer/FluentDate/On.Days.tt +++ b/src/Humanizer/FluentDate/On.Days.tt @@ -9,7 +9,7 @@ namespace Humanizer; /// /// -public partial class On +public class On { <# const int leapYear = 2012; diff --git a/src/Humanizer/FluentDate/OnDate.Days.cs b/src/Humanizer/FluentDate/OnDate.Days.cs index ae3477b66..9a4000ccf 100644 --- a/src/Humanizer/FluentDate/OnDate.Days.cs +++ b/src/Humanizer/FluentDate/OnDate.Days.cs @@ -1,9 +1,7 @@ #if NET6_0_OR_GREATER namespace Humanizer; -/// -/// -public partial class OnDate +public class OnDate { /// /// Provides fluent date accessors for January diff --git a/src/Humanizer/FluentDate/OnDate.Days.tt b/src/Humanizer/FluentDate/OnDate.Days.tt index 4034e7079..cf0342fda 100644 --- a/src/Humanizer/FluentDate/OnDate.Days.tt +++ b/src/Humanizer/FluentDate/OnDate.Days.tt @@ -8,9 +8,7 @@ #if NET6_0_OR_GREATER namespace Humanizer; -/// -/// -public partial class OnDate +public class OnDate { <# const int leapYear = 2012; diff --git a/src/Humanizer/Localisation/ResourceKeys.Common.cs b/src/Humanizer/Localisation/ResourceKeys.Common.cs index a0d2a7fa6..95a9263e2 100644 --- a/src/Humanizer/Localisation/ResourceKeys.Common.cs +++ b/src/Humanizer/Localisation/ResourceKeys.Common.cs @@ -1,8 +1,5 @@ namespace Humanizer { - /// - /// - /// public partial class ResourceKeys { const string Single = "Single";