Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Virenbar committed May 26, 2024
1 parent 78a31ae commit 67071fa
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions GDPIControl/Forms/FormGDPISettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ namespace GDPIControl.Forms
{
public partial class FormGDPISettings : Form
{
//private readonly Regex IP_R = new(@"^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$");

private readonly GDPISettings GDPISettings;
private readonly ControlSettings Settings;

Expand All @@ -27,49 +25,6 @@ public FormGDPISettings(ControlSettings settings)

#region UIEvents

#region Validating
/*
Private Sub DNS_IP_Validating(sender As Object, e As CancelEventArgs) Handles DNS_IP.Validating
If DNS_IP.Text = "" Then Exit Sub
Try
Dim M = IP_R.Match(DNS_IP.Text)
e.Cancel = Not M.Success
Catch ex As Exception
e.Cancel = True
End Try
End Sub
Private Sub DNS_Port_Validating(sender As Object, e As CancelEventArgs) Handles DNS_Port.Validating
Try
Dim p = CInt(DNS_Port.Text)
e.Cancel = p <= 0 Or p > 65535
Catch ex As Exception
e.Cancel = True
End Try
End Sub
Private Sub DNS6_IP_Validating(sender As Object, e As CancelEventArgs) Handles DNS6_IP.Validating
If DNS6_IP.Text = "" Then Exit Sub
Try
Dim IP As IPAddress = Nothing
Dim r = IPAddress.TryParse(DNS6_IP.Text, IP)
Dim T = IP.AddressFamily
Catch ex As Exception
e.Cancel = True
End Try
End Sub
Private Sub DNS6_Port_Validating(sender As Object, e As CancelEventArgs) Handles DNS6_Port.Validating
Try
Dim p = CInt(DNS6_Port.Text)
e.Cancel = p <= 0 Or p > 65535
Catch ex As Exception
e.Cancel = True
End Try
End Sub
*/
#endregion Validating

private void B_Cancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Expand Down

0 comments on commit 67071fa

Please sign in to comment.