cleans used code

vnext
Paul Schneider 9 years ago
parent 8e07487b0b
commit 13a6753614
2 changed files with 4 additions and 27 deletions

@ -144,33 +144,6 @@ namespace Yavsc.Model.Blogs
return result; return result;
} } } }
/// <summary>
/// Gets a value indicating whether this <see cref="Yavsc.Model.Blogs.BlogEntryCollection"/> concerns A unique title.
/// </summary>
/// <value><c>true</c> if concerns A unique title; otherwise, <c>false</c>.</value>
[Obsolete("And what if no title? Do you really need this test?")]
public bool ConcernsAUniqueTitle {
get {
if (this.Count <= 1)
return true;
else
return this.All (x => Titles [0] == x.Title);
}
}
/// <summary>
/// Gets a value indicating whether this <see cref="Yavsc.Model.Blogs.BlogEntryCollection"/> concerns A unique title.
/// </summary>
/// <value><c>true</c> if concerns A unique title; otherwise, <c>false</c>.</value>
[Obsolete("And what if no title? Do you really need this test?")]
public bool ConcernsAUniqueUser {
get {
if (this.Count <= 1)
return true;
else
return this.All (x => x.UserName == this[0].UserName);
}
}
} }
} }

@ -1,3 +1,7 @@
2015-08-20 Paul Schneider <paul@pschneider.fr>
* BlogEntryCollection.cs: cleans used code
2015-08-20 Paul Schneider <paul@pschneider.fr> 2015-08-20 Paul Schneider <paul@pschneider.fr>
* BlogEntryCollection.cs: ConcernsAUniqueTitle and * BlogEntryCollection.cs: ConcernsAUniqueTitle and

Loading…