Remove unnesessary usings

This commit is contained in:
femsci 2023-05-03 13:19:59 +02:00
parent 912945a142
commit 3fb36213b4
Signed by: femsci
GPG key ID: 08F7911F0E650C67
16 changed files with 28 additions and 64 deletions

View file

@ -0,0 +1,16 @@
using System.Net;
namespace IPMeow.Dhcp;
public class AddressTable
{
public IPAddress GetFor(string host)
{
throw new NotImplementedException();
}
public IPAddress Next()
{
throw new NotImplementedException();
}
}

View file

@ -1,4 +1,3 @@
using IPMeow.Dhcp.Server;
using IPMeow.Dhcp.Server.Dhcp4; using IPMeow.Dhcp.Server.Dhcp4;
namespace IPMeow.Dhcp namespace IPMeow.Dhcp

View file

@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net; using System.Net;
using System.Net.NetworkInformation;
using System.Text; using System.Text;
using System.Threading.Tasks;
using IPMeow.Lib; using IPMeow.Lib;
namespace IPMeow.Dhcp.Server.Dhcp4; namespace IPMeow.Dhcp.Server.Dhcp4;

View file

@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net; using System.Net;
using System.Net.Sockets; using System.Net.Sockets;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server.Dhcp4; namespace IPMeow.Dhcp.Server.Dhcp4;
@ -41,8 +37,6 @@ public class DhcpServer
return; return;
} }
Console.WriteLine("Solicitation: "); Console.WriteLine("Solicitation: ");
Console.WriteLine(packet.ToString()); Console.WriteLine(packet.ToString());
} }

View file

@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net; using System.Net;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server; namespace IPMeow.Dhcp.Server.Dhcp6;
public readonly struct AddressAssociation public readonly struct AddressAssociation
{ {

View file

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;
public enum DhcpMessageType : byte public enum DhcpMessageType : byte

View file

@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net; using System.Net;
using System.Text; using System.Text;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;

View file

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IPMeow.Lib; using IPMeow.Lib;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;

View file

@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net; using System.Net;
using System.Net.Sockets; using System.Net.Sockets;
using System.Threading.Tasks;
using IPMeow.Dhcp.Server.Dhcp4;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;

View file

@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;
@ -30,7 +26,7 @@ public struct DhcpStatus
public ushort Code { get; set; } public ushort Code { get; set; }
public string? Message { get; set; } public string? Message { get; set; }
public byte[] Serialize() public readonly byte[] Serialize()
{ {
byte[] buf = new byte[2 + Message?.Length ?? 0]; byte[] buf = new byte[2 + Message?.Length ?? 0];

View file

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;
public enum DuidType : short public enum DuidType : short

View file

@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server.Dhcp6; namespace IPMeow.Dhcp.Server.Dhcp6;
public struct IdentityAssociation public readonly struct IdentityAssociation
{ {
public int IAId { get; } public int IAId { get; }
public int TimeToRefresh { get; } public int TimeToRefresh { get; }

View file

@ -0,0 +1,9 @@
namespace IPMeow.Dhcp.Server.Dhcp6;
public class StateMonitor
{
public bool IsAssigned(int xid)
{
throw new NotImplementedException();
}
}

View file

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IPMeow.Dhcp.Server; namespace IPMeow.Dhcp.Server;
public interface IDhcpServer public interface IDhcpServer

View file

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IPMeow.Server.Provider; namespace IPMeow.Server.Provider;
public interface IAddressProvider public interface IAddressProvider

View file

@ -1,6 +1,3 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages(); builder.Services.AddRazorPages();