From 55a42f1f331a40cd5f81800fa38667cf4d64658e Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Mon, 23 Dec 2019 19:15:26 -0800 Subject: [PATCH] Remove unused methods. These were generated automatically, but are unnecessary since we only compare equality with other Filesets. --- Duplicati/UnitTest/DeleteHandlerTests.cs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Duplicati/UnitTest/DeleteHandlerTests.cs b/Duplicati/UnitTest/DeleteHandlerTests.cs index d6b652501..e05cd8df8 100644 --- a/Duplicati/UnitTest/DeleteHandlerTests.cs +++ b/Duplicati/UnitTest/DeleteHandlerTests.cs @@ -32,26 +32,6 @@ namespace Duplicati.UnitTest if (ReferenceEquals(this, other)) return true; return this.Version == other.Version && this.IsFullBackup == other.IsFullBackup && this.Time.Equals(other.Time) && this.FileCount == other.FileCount && this.FileSizes == other.FileSizes; } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - if (ReferenceEquals(this, obj)) return true; - return obj.GetType() == this.GetType() && this.Equals((Fileset) obj); - } - - public override int GetHashCode() - { - unchecked - { - int hashCode = this.Version.GetHashCode(); - hashCode = (hashCode * 397) ^ this.IsFullBackup; - hashCode = (hashCode * 397) ^ this.Time.GetHashCode(); - hashCode = (hashCode * 397) ^ this.FileCount.GetHashCode(); - hashCode = (hashCode * 397) ^ this.FileSizes.GetHashCode(); - return hashCode; - } - } } [Test]