U4-11546 [v7] Clean up to remove compiler warnings (#2823)

This commit is contained in:
Mundairson
2018-07-31 09:41:15 +01:00
committed by Sebastiaan Janssen
parent 3a0c872587
commit 9cd2db5018
26 changed files with 28 additions and 63 deletions

View File

@@ -12,7 +12,6 @@ namespace Umbraco.Tests.Models.Collections
public abstract class Item : IEntity, ICanBeDirty
{
private bool _hasIdentity;
private int? _hash;
private int _id;
private Guid _key;
@@ -173,15 +172,7 @@ namespace Umbraco.Tests.Models.Collections
public static bool operator ==(Item left, Item right)
{
/*if (ReferenceEquals(null, left))
return false;
if(ReferenceEquals(null, right))
return false;*/
return ReferenceEquals(left, right);
return left.Equals(right);
}
public static bool operator !=(Item left, Item right)
@@ -250,4 +241,4 @@ namespace Umbraco.Tests.Models.Collections
return this.MemberwiseClone();
}
}
}
}