The Free Software Media System - Server Backend & API
Remove obsolete functions
Bond_00932469b3f6559
diff --git a/Emby.Server.Implementations/IO/SharpCifs/Smb/SmbFile.cs b/Emby.Server.Implementations/IO/SharpCifs/Smb/SmbFile.csindex 151ec35c48..7fd9f0d84e 100644--- a/Emby.Server.Implementations/IO/SharpCifs/Smb/SmbFile.cs+++ b/Emby.Server.Implementations/IO/SharpCifs/Smb/SmbFile.cs@@ -3380,26 +3380,6 @@ namespace SharpCifs.SmbSetAttributes(GetAttributes() & ~AttrReadonly);}- /// <summary>- /// Returns a- /// <see cref="System.Uri">System.Uri</see>- /// for this <code>SmbFile</code>. The- /// <code>URL</code> may be used as any other <code>URL</code> might to- /// access an SMB resource. Currently only retrieving data and information- /// is supported (i.e. no <tt>doOutput</tt>).- /// </summary>- /// <returns>- /// A new <code>- /// <see cref="System.Uri">System.Uri</see>- /// </code> for this <code>SmbFile</code>- /// </returns>- /// <exception cref="System.UriFormatException">System.UriFormatException</exception>- [Obsolete(@"Use getURL() instead")]- public virtual Uri ToUrl()- {- return Url;- }-/// <summary>/// Computes a hashCode for this file based on the URL string and IP/// address if the server.diff --git a/Emby.Server.Implementations/Networking/IPNetwork/IPNetwork.cs b/Emby.Server.Implementations/Networking/IPNetwork/IPNetwork.csindex 6d7785b906..8d0fb79971 100644--- a/Emby.Server.Implementations/Networking/IPNetwork/IPNetwork.cs+++ b/Emby.Server.Implementations/Networking/IPNetwork/IPNetwork.cs@@ -189,7 +189,7 @@ namespace System.Netinternal#endif- IPNetwork(BigInteger ipaddress, AddressFamily family, byte cidr)+ IPNetwork(BigInteger ipaddress, AddressFamily family, byte cidr){int maxCidr = family == Sockets.AddressFamily.InterNetwork ? 32 : 128;@@ -1164,18 +1164,6 @@ namespace System.Net}- [Obsolete("static Contains is deprecated, please use instance Contains.")]- public static bool Contains(IPNetwork network, IPAddress ipaddress)- {-- if (network == null)- {- throw new ArgumentNullException("network");- }-- return network.Contains(ipaddress);- }-/// <summary>/// return true is network2 is fully contained in network/// </summary>@@ -1201,18 +1189,6 @@ namespace System.Netreturn contains;}- [Obsolete("static Contains is deprecated, please use instance Contains.")]- public static bool Contains(IPNetwork network, IPNetwork network2)- {-- if (network == null)- {- throw new ArgumentNullException("network");- }-- return network.Contains(network2);- }-#endregion#region overlap@@ -1245,18 +1221,6 @@ namespace System.Netreturn overlap;}- [Obsolete("static Overlap is deprecated, please use instance Overlap.")]- public static bool Overlap(IPNetwork network, IPNetwork network2)- {-- if (network == null)- {- throw new ArgumentNullException("network");- }-- return network.Overlap(network2);- }-#endregion#region ToString@@ -1341,18 +1305,6 @@ namespace System.Net|| IPNetwork.IANA_CBLK_RESERVED1.Contains(this);}- [Obsolete("static IsIANAReserved is deprecated, please use instance IsIANAReserved.")]- public static bool IsIANAReserved(IPNetwork ipnetwork)- {-- if (ipnetwork == null)- {- throw new ArgumentNullException("ipnetwork");- }-- return ipnetwork.IsIANAReserved();- }-#endregion#region Subnet@@ -1371,16 +1323,6 @@ namespace System.Netreturn ipnetworkCollection;}- [Obsolete("static Subnet is deprecated, please use instance Subnet.")]- public static IPNetworkCollection Subnet(IPNetwork network, byte cidr)- {- if (network == null)- {- throw new ArgumentNullException("network");- }- return network.Subnet(cidr);- }-/// <summary>/// Subnet a network into multiple nets of cidr mask/// Subnet 192.168.0.0/24 into cidr 25 gives 192.168.0.0/25, 192.168.0.128/25@@ -1402,16 +1344,6 @@ namespace System.Netreturn true;}- [Obsolete("static TrySubnet is deprecated, please use instance TrySubnet.")]- public static bool TrySubnet(IPNetwork network, byte cidr, out IPNetworkCollection ipnetworkCollection)- {- if (network == null)- {- throw new ArgumentNullException("network");- }- return network.TrySubnet(cidr, out ipnetworkCollection);- }-#if TRAVISCIpublic#else@@ -1476,12 +1408,6 @@ namespace System.Netreturn supernet;}- [Obsolete("static Supernet is deprecated, please use instance Supernet.")]- public static IPNetwork Supernet(IPNetwork network, IPNetwork network2)- {- return network.Supernet(network2);- }-/// <summary>/// Try to supernet two consecutive cidr equal subnet into a single one/// 192.168.0.0/24 + 192.168.1.0/24 = 192.168.0.0/23@@ -1500,16 +1426,6 @@ namespace System.Netreturn parsed;}- [Obsolete("static TrySupernet is deprecated, please use instance TrySupernet.")]- public static bool TrySupernet(IPNetwork network, IPNetwork network2, out IPNetwork supernet)- {- if (network == null)- {- throw new ArgumentNullException("network");- }- return network.TrySupernet(network2, out supernet);- }-#if TRAVISCIpublic#else@@ -1920,18 +1836,6 @@ namespace System.Netreturn sw.ToString();}- [Obsolete("static Print is deprecated, please use instance Print.")]- public static string Print(IPNetwork ipnetwork)- {-- if (ipnetwork == null)- {- throw new ArgumentNullException("ipnetwork");- }-- return ipnetwork.Print();- }-#endregion#region TryGuessCidr@@ -2018,12 +1922,6 @@ namespace System.Net#region ListIPAddress- [Obsolete("static ListIPAddress is deprecated, please use instance ListIPAddress.")]- public static IPAddressCollection ListIPAddress(IPNetwork ipnetwork)- {- return ipnetwork.ListIPAddress();- }-public IPAddressCollection ListIPAddress(){return new IPAddressCollection(this);@@ -2167,4 +2065,4 @@ namespace System.Net#endregion}-}\ No newline at end of file+}