mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 15:03:06 +03:00
Remove unused dependencies
This commit is contained in:
@@ -15,8 +15,6 @@ namespace Rssdp.Infrastructure
|
||||
/// </summary>
|
||||
public class SsdpDevicePublisher : DisposableManagedObjectBase, ISsdpDevicePublisher
|
||||
{
|
||||
private readonly INetworkManager _networkManager;
|
||||
|
||||
private ISsdpCommunicationsServer _CommsServer;
|
||||
private string _OSName;
|
||||
private string _OSVersion;
|
||||
@@ -38,19 +36,17 @@ namespace Rssdp.Infrastructure
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public SsdpDevicePublisher(ISsdpCommunicationsServer communicationsServer, INetworkManager networkManager,
|
||||
string osName, string osVersion, bool sendOnlyMatchedHost)
|
||||
public SsdpDevicePublisher(
|
||||
ISsdpCommunicationsServer communicationsServer,
|
||||
string osName,
|
||||
string osVersion,
|
||||
bool sendOnlyMatchedHost)
|
||||
{
|
||||
if (communicationsServer == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(communicationsServer));
|
||||
}
|
||||
|
||||
if (networkManager == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(networkManager));
|
||||
}
|
||||
|
||||
if (osName == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(osName));
|
||||
@@ -77,7 +73,6 @@ namespace Rssdp.Infrastructure
|
||||
_RecentSearchRequests = new Dictionary<string, SearchRequest>(StringComparer.OrdinalIgnoreCase);
|
||||
_Random = new Random();
|
||||
|
||||
_networkManager = networkManager;
|
||||
_CommsServer = communicationsServer;
|
||||
_CommsServer.RequestReceived += CommsServer_RequestReceived;
|
||||
_OSName = osName;
|
||||
|
||||
Reference in New Issue
Block a user