diff --git a/plist-cil.test/UIDTests.cs b/plist-cil.test/UIDTests.cs
index a9e6bcd..69a016a 100644
--- a/plist-cil.test/UIDTests.cs
+++ b/plist-cil.test/UIDTests.cs
@@ -52,20 +52,6 @@ namespace plistcil.test
Assert.Equal(new byte[] {0xAB, 0xCD, 0xEF, 0x00, 0x00, 0xEF, 0xCD, 0xAB}, uid.Bytes);
}
- [Fact]
- public void SByteUidTest()
- {
- UID uid = new UID("test", (sbyte)0x0F);
- Assert.Equal(new byte[] {0x0F}, uid.Bytes);
- }
-
- [Fact]
- public void ShortUidTest()
- {
- UID uid = new UID("test", (short)0x0F0F);
- Assert.Equal(new byte[] {0x0F, 0x0F}, uid.Bytes);
- }
-
[Fact]
public void UIntUidTest()
{
diff --git a/plist-cil/UID.cs b/plist-cil/UID.cs
index cf21b5c..a8fac19 100644
--- a/plist-cil/UID.cs
+++ b/plist-cil/UID.cs
@@ -38,20 +38,6 @@ namespace Claunia.PropertyList
{
readonly ulong value;
- ///
- /// Initializes a new instance of the class.
- ///
- /// Name.
- /// Bytes.
- [Obsolete("UIDs have not meaningful names")]
- public UID(string name, ReadOnlySpan bytes)
- {
- if(bytes.Length != 1 && bytes.Length != 2 && bytes.Length != 4 && bytes.Length != 8)
- throw new ArgumentException("Type argument is not valid.");
-
- value = (ulong)BinaryPropertyListParser.ParseLong(bytes);
- }
-
///
/// Initializes a new instance of the class.
///
@@ -64,17 +50,6 @@ namespace Claunia.PropertyList
value = (ulong)BinaryPropertyListParser.ParseLong(bytes);
}
- ///
- /// Initializes a new instance of the class using an unsigned 8-bit number.
- ///
- /// Name.
- /// Unsigned 8-bit number.
- [Obsolete("UIDs have no meaningful names")]
- public UID(string name, byte number)
- {
- value = number;
- }
-
///
/// Initializes a new instance of the class using an unsigned 8-bit number.
///
@@ -84,28 +59,6 @@ namespace Claunia.PropertyList
value = number;
}
- ///
- /// Initializes a new instance of the class using a signed 8-bit number.
- ///
- /// Name.
- /// Unsigned 8-bit number.
- [Obsolete("UIDs must be unsigned values")]
- public UID(string name, sbyte number)
- {
- value = (ulong)number;
- }
-
- ///
- /// Initializes a new instance of the class using an unsigned 16-bit number.
- ///
- /// Name.
- /// Unsigned 16-bit number.
- [Obsolete("UIDs have no meaningful names")]
- public UID(string name, ushort number)
- {
- value = number;
- }
-
///
/// Initializes a new instance of the class using an unsigned 16-bit number.
///
@@ -116,28 +69,6 @@ namespace Claunia.PropertyList
value = number;
}
- ///
- /// Initializes a new instance of the class using a signed 16-bit number.
- ///
- /// Name.
- /// Signed 16-bit number.
- [Obsolete("UIDs must be unsigned values")]
- public UID(string name, short number)
- {
- value = (ulong)number;
- }
-
- ///
- /// Initializes a new instance of the class using an unsigned 32-bit number.
- ///
- /// Name.
- /// Unsigned 32-bit number.
- [Obsolete("UIDs have no meaningful names")]
- public UID(string name, uint number)
- {
- value = number;
- }
-
///
/// Initializes a new instance of the class using an unsigned 32-bit number.
///
@@ -147,28 +78,6 @@ namespace Claunia.PropertyList
value = number;
}
- ///
- /// Initializes a new instance of the class using a signed 32-bit number.
- ///
- /// Name.
- /// Signed 32-bit number.
- [Obsolete("UIDs must be unsigned values")]
- public UID(string name, int number)
- {
- value = (ulong)number;
- }
-
- ///
- /// Initializes a new instance of the class using an unsigned 64-bit number.
- ///
- /// Name.
- /// Unsigned 64-bit number.
- [Obsolete("UIDs have no meaningful names")]
- public UID(string name, ulong number)
- {
- value = number;
- }
-
///
/// Initializes a new instance of the class using an unsigned 64-bit number.
///
@@ -178,17 +87,6 @@ namespace Claunia.PropertyList
value = number;
}
- ///
- /// Initializes a new instance of the class using a signed 64-bit number.
- ///
- /// Name.
- /// Signed 64-bit number.
- [Obsolete("UIDs must be unsigned values")]
- public UID(string name, long number)
- {
- value = (ulong)number;
- }
-
///
/// Gets the bytes.
///
@@ -219,13 +117,6 @@ namespace Claunia.PropertyList
}
}
- ///
- /// Gets the name.
- ///
- /// The name.
- [Obsolete("UIDs have no meaningful names")]
- public string Name => value.ToString();
-
///
/// Writes the bytes required to represent this to a byte span.
///