U4-11546 [v7] Clean up to remove compiler warnings (#2823)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
3a0c872587
commit
9cd2db5018
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user