Skip to content

Commit

Permalink
Revert value equality testing method
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Oct 23, 2023
1 parent 7867954 commit e28ef64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion DataDefinitions/CommodityDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ static CommodityDefinition()
new CommodityDefinition(129019258, "ThargoidTissueSampleType5", Salvage, 98368, false),
new CommodityDefinition(129019259, "ThargoidGeneratorTissueSample", Salvage, 67680, false),
new CommodityDefinition(129022087, "UnocuppiedEscapePod", Salvage, 3900, false),

new CommodityDefinition(129022408, "UnknownMineral", Salvage, 31986, false),
new CommodityDefinition(129022409, "UnknownRefinedMineral", Salvage, 158421, false),

Expand Down
9 changes: 0 additions & 9 deletions Utilities/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ public static bool DeepEquals(this object obj, object another)
if ((obj == null) || (another == null)) { return false; }
if (obj.GetType() != another.GetType()) { return false; }

try
{
return obj.GetHashCode() == another.GetHashCode();
}
catch ( Exception e )
{
Logging.Error( "Value equality comparison failed.", e );
}

try
{
var objJson = JsonConvert.SerializeObject(obj);
Expand Down

0 comments on commit e28ef64

Please sign in to comment.