Skip to content

Commit 5639bab

Browse files
authored
Merge pull request #1189 from SixLabors/bp/remObsoleteTxtProperty
Remove obsolete PngTextProperties from png metadata
2 parents f6122df + 6545bbd commit 5639bab

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

src/ImageSharp/Formats/Png/PngMetadata.cs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -91,34 +91,12 @@ private PngMetadata(PngMetadata other)
9191
public bool HasTransparency { get; set; }
9292

9393
/// <summary>
94-
/// Gets or sets the collection of text data stored within the iTXt, tEXt, and zTXt chunks.
94+
/// Gets or sets the collection of text data stored within the iTXt, tEXt, and zTXt chunks.
9595
/// Used for conveying textual information associated with the image.
9696
/// </summary>
9797
public IList<PngTextData> TextData { get; set; } = new List<PngTextData>();
9898

99-
/// <summary>
100-
/// Gets the list of png text properties for storing meta information about this image.
101-
/// </summary>
102-
public IList<PngTextData> PngTextProperties { get; } = new List<PngTextData>();
103-
10499
/// <inheritdoc/>
105100
public IDeepCloneable DeepClone() => new PngMetadata(this);
106-
107-
internal bool TryGetPngTextProperty(string keyword, out PngTextData result)
108-
{
109-
for (int i = 0; i < this.TextData.Count; i++)
110-
{
111-
if (this.TextData[i].Keyword == keyword)
112-
{
113-
result = this.TextData[i];
114-
115-
return true;
116-
}
117-
}
118-
119-
result = default;
120-
121-
return false;
122-
}
123101
}
124102
}

0 commit comments

Comments
 (0)