From e28ef64a1d41c1e39485863aa362d207e8d36834 Mon Sep 17 00:00:00 2001 From: T'kael Date: Sun, 22 Oct 2023 20:02:04 -0700 Subject: [PATCH] Revert value equality testing method --- DataDefinitions/CommodityDefinition.cs | 1 - Utilities/ExtensionMethods.cs | 9 --------- 2 files changed, 10 deletions(-) diff --git a/DataDefinitions/CommodityDefinition.cs b/DataDefinitions/CommodityDefinition.cs index e50b380485..fb4171c881 100644 --- a/DataDefinitions/CommodityDefinition.cs +++ b/DataDefinitions/CommodityDefinition.cs @@ -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), diff --git a/Utilities/ExtensionMethods.cs b/Utilities/ExtensionMethods.cs index 56b016d10f..0ce585a0b2 100644 --- a/Utilities/ExtensionMethods.cs +++ b/Utilities/ExtensionMethods.cs @@ -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);