From 264dc69c2285b32b468a7b1c478e59cfe07ef3bc Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Mon, 5 Feb 2024 13:08:17 +1100 Subject: [PATCH] Remove obsolete members on Tag class These have been obsolete for a long time. Remove them as part of the API changes in 2.9.0. --- MetadataExtractor/PublicAPI/net462/PublicAPI.Shipped.txt | 3 --- .../PublicAPI/netstandard1.3/PublicAPI.Shipped.txt | 3 --- .../PublicAPI/netstandard2.1/PublicAPI.Shipped.txt | 3 --- MetadataExtractor/Tag.cs | 9 --------- 4 files changed, 18 deletions(-) diff --git a/MetadataExtractor/PublicAPI/net462/PublicAPI.Shipped.txt b/MetadataExtractor/PublicAPI/net462/PublicAPI.Shipped.txt index 1cbba6c7b..71a75143b 100644 --- a/MetadataExtractor/PublicAPI/net462/PublicAPI.Shipped.txt +++ b/MetadataExtractor/PublicAPI/net462/PublicAPI.Shipped.txt @@ -4002,11 +4002,8 @@ MetadataExtractor.Tag MetadataExtractor.Tag.Description.get -> string? MetadataExtractor.Tag.DirectoryName.get -> string! MetadataExtractor.Tag.HasName.get -> bool -MetadataExtractor.Tag.HasTagName.get -> bool MetadataExtractor.Tag.Name.get -> string! MetadataExtractor.Tag.Tag(int type, MetadataExtractor.Directory! directory) -> void -MetadataExtractor.Tag.TagName.get -> string! -MetadataExtractor.Tag.TagType.get -> int MetadataExtractor.Tag.Type.get -> int MetadataExtractor.TagDescriptor MetadataExtractor.TagDescriptor.Directory.get -> T! diff --git a/MetadataExtractor/PublicAPI/netstandard1.3/PublicAPI.Shipped.txt b/MetadataExtractor/PublicAPI/netstandard1.3/PublicAPI.Shipped.txt index 9ef730822..b230ae89c 100644 --- a/MetadataExtractor/PublicAPI/netstandard1.3/PublicAPI.Shipped.txt +++ b/MetadataExtractor/PublicAPI/netstandard1.3/PublicAPI.Shipped.txt @@ -3995,11 +3995,8 @@ MetadataExtractor.Tag MetadataExtractor.Tag.Description.get -> string? MetadataExtractor.Tag.DirectoryName.get -> string! MetadataExtractor.Tag.HasName.get -> bool -MetadataExtractor.Tag.HasTagName.get -> bool MetadataExtractor.Tag.Name.get -> string! MetadataExtractor.Tag.Tag(int type, MetadataExtractor.Directory! directory) -> void -MetadataExtractor.Tag.TagName.get -> string! -MetadataExtractor.Tag.TagType.get -> int MetadataExtractor.Tag.Type.get -> int MetadataExtractor.TagDescriptor MetadataExtractor.TagDescriptor.Directory.get -> T! diff --git a/MetadataExtractor/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt b/MetadataExtractor/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt index 9c2816869..ebbc8bdec 100644 --- a/MetadataExtractor/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt +++ b/MetadataExtractor/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt @@ -3997,11 +3997,8 @@ MetadataExtractor.Tag MetadataExtractor.Tag.Description.get -> string? MetadataExtractor.Tag.DirectoryName.get -> string! MetadataExtractor.Tag.HasName.get -> bool -MetadataExtractor.Tag.HasTagName.get -> bool MetadataExtractor.Tag.Name.get -> string! MetadataExtractor.Tag.Tag(int type, MetadataExtractor.Directory! directory) -> void -MetadataExtractor.Tag.TagName.get -> string! -MetadataExtractor.Tag.TagType.get -> int MetadataExtractor.Tag.Type.get -> int MetadataExtractor.TagDescriptor MetadataExtractor.TagDescriptor.Directory.get -> T! diff --git a/MetadataExtractor/Tag.cs b/MetadataExtractor/Tag.cs index 76bf623ce..542c1f623 100644 --- a/MetadataExtractor/Tag.cs +++ b/MetadataExtractor/Tag.cs @@ -22,9 +22,6 @@ public Tag(int type, Directory directory) /// the tag type as an int public int Type { get; } - [Obsolete("Use Type instead.")] - public int TagType => Type; - /// /// Get a description of the tag's value, considering enumerated values /// and units. @@ -39,17 +36,11 @@ public Tag(int type, Directory directory) /// public bool HasName => _directory.HasTagName(Type); - [Obsolete("Use HasName instead.")] - public bool HasTagName => HasName; - /// /// Get the name of the tag, such as Aperture, or InteropVersion. /// public string Name => _directory.GetTagName(Type); - [Obsolete("Use Name instead")] - public string TagName => Name; - /// /// Get the name of the in which the tag exists, such as Exif, GPS or Interoperability. ///