This is unnecessary. The default automatically genreated equality operator is fine. Remove this.