From cb5ae3cb23052d2e93dd509304c145eba66932ca Mon Sep 17 00:00:00 2001 From: Ross Lovas Date: Tue, 27 Jun 2023 13:13:46 +0930 Subject: [PATCH] Remove unused class ReferencingDocument --- source/Nevermore/ReferencingDocument.cs | 48 ------------------------- 1 file changed, 48 deletions(-) delete mode 100644 source/Nevermore/ReferencingDocument.cs diff --git a/source/Nevermore/ReferencingDocument.cs b/source/Nevermore/ReferencingDocument.cs deleted file mode 100644 index ba715bdb..00000000 --- a/source/Nevermore/ReferencingDocument.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; - -namespace Nevermore -{ - public class ReferencingDocument : IEquatable - { - public string DocumentId { get; set; } - public string DocumentName { get; set; } - public string Relationship { get; set; } - public object Document { get; set; } - - public bool Equals(ReferencingDocument other) - { - if (ReferenceEquals(null, other)) return false; - if (ReferenceEquals(this, other)) return true; - return string.Equals(DocumentId, other.DocumentId) && string.Equals(DocumentName, other.DocumentName) && Relationship == other.Relationship; - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - if (ReferenceEquals(this, obj)) return true; - if (obj.GetType() != GetType()) return false; - return Equals((ReferencingDocument)obj); - } - - public override int GetHashCode() - { - unchecked - { - var hashCode = (DocumentId != null ? DocumentId.GetHashCode() : 0); - hashCode = (hashCode*397) ^ (DocumentName != null ? DocumentName.GetHashCode() : 0); - hashCode = (hashCode*397) ^ (Relationship != null ? Relationship.GetHashCode() : 0); - return hashCode; - } - } - - public static bool operator ==(ReferencingDocument left, ReferencingDocument right) - { - return Equals(left, right); - } - - public static bool operator !=(ReferencingDocument left, ReferencingDocument right) - { - return !Equals(left, right); - } - } -} \ No newline at end of file