mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Cleaned up some unused code.
This commit is contained in:
@@ -5,7 +5,7 @@ using Orchard.Framework.Localization.Models;
|
||||
namespace Orchard.Framework.Tests.Localization {
|
||||
|
||||
[TestFixture]
|
||||
public class DateParseResultTests {
|
||||
public class DateTimePartsTests {
|
||||
|
||||
[Test]
|
||||
[Description("Equal instances return equality.")]
|
@@ -259,7 +259,7 @@
|
||||
<Compile Include="FileSystems\Dependencies\DependenciesFolderTests.cs" />
|
||||
<Compile Include="FileSystems\VirtualPath\DefaultVirtualPathProviderTests.cs" />
|
||||
<Compile Include="Localization\CultureManagerTests.cs" />
|
||||
<Compile Include="Localization\DateParseResultTests.cs" />
|
||||
<Compile Include="Localization\DateTimePartsTests.cs" />
|
||||
<Compile Include="Localization\DefaultDateFormatterTests.cs" />
|
||||
<Compile Include="Logging\OrchardFileAppenderTests.cs" />
|
||||
<Compile Include="Messaging\MessagingChannelStub.cs" />
|
||||
|
@@ -30,16 +30,5 @@ namespace Orchard.Framework.Localization.Models {
|
||||
return _day;
|
||||
}
|
||||
}
|
||||
|
||||
//public override bool Equals(object obj) {
|
||||
// var other = (DateParts)obj;
|
||||
|
||||
// if (Year != other.Year ||
|
||||
// Month != other.Month ||
|
||||
// Day != other.Day)
|
||||
// return false;
|
||||
|
||||
// return true;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
@@ -28,15 +28,5 @@ namespace Orchard.Framework.Localization.Models {
|
||||
return _time;
|
||||
}
|
||||
}
|
||||
|
||||
//public override bool Equals(object obj) {
|
||||
// var other = (DateTimeParts)obj;
|
||||
|
||||
// if (!(Date.Equals(other.Date)) ||
|
||||
// !(Time.Equals(other.Time)))
|
||||
// return false;
|
||||
|
||||
// return true;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
@@ -40,17 +40,5 @@ namespace Orchard.Framework.Localization.Models {
|
||||
return _millisecond;
|
||||
}
|
||||
}
|
||||
|
||||
//public override bool Equals(object obj) {
|
||||
// var other = (TimeParts)obj;
|
||||
|
||||
// if (Hour != other.Hour ||
|
||||
// Minute != other.Minute ||
|
||||
// Second != other.Second ||
|
||||
// Millisecond != other.Millisecond)
|
||||
// return false;
|
||||
|
||||
// return Hour == other.Hour;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user