Skip to content

Commit 3e62952

Browse files
committed
Removed IsEmpty()
Since it's no longer possible to create a `Topic` without a `Key`, there isn't any need to retain `IsEmpty()`. (It also was almost never used.)
1 parent e257d09 commit 3e62952

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

Ignia.Topics.Tests/TopicTest.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ public void Topic_CreateTest() {
3434
Assert.AreEqual<string>(topic.Attributes.GetValue("ContentType"), "ContentType");
3535
}
3636

37-
/*==========================================================================================================================
38-
| TEST: IS EMPTY
39-
\-------------------------------------------------------------------------------------------------------------------------*/
40-
/// <summary>
41-
/// Creates a topic using the default constructor, and ensures it's returned as empty.
42-
/// </summary>
43-
[TestMethod]
44-
public void Topic_IsEmptyTest() {
45-
var topic = new Topic();
46-
Assert.IsTrue(topic.IsEmpty);
47-
}
48-
4937
/*==========================================================================================================================
5038
| TEST: CHANGE ID
5139
\-------------------------------------------------------------------------------------------------------------------------*/

Ignia.Topics/Topic.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,6 @@ public Topic Parent {
141141
/// </summary>
142142
public TopicCollection Children { get; }
143143

144-
/*==========================================================================================================================
145-
| PROPERTY: IS EMPTY
146-
\-------------------------------------------------------------------------------------------------------------------------*/
147-
/// <summary>
148-
/// Gets whether the Topic's Key is invalid (null or empty).
149-
/// </summary>
150-
public bool IsEmpty => String.IsNullOrEmpty(Key);
151-
152144
/*==========================================================================================================================
153145
| PROPERTY: CONTENT TYPE
154146
\-------------------------------------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)