Remove not used code paths.
This commit is contained in:
@@ -576,7 +576,6 @@ function validateConnection(form_name, form_obj)
|
|||||||
{
|
{
|
||||||
// All the text fields are checked excluding the port field because the default port can be used.
|
// All the text fields are checked excluding the port field because the default port can be used.
|
||||||
if ((form_name.elements[i].type == 'text') && (form_name.elements[i].name != 'src_port') && (form_name.elements[i].name != 'trg_port')) {
|
if ((form_name.elements[i].type == 'text') && (form_name.elements[i].name != 'src_port') && (form_name.elements[i].name != 'trg_port')) {
|
||||||
check = true;
|
|
||||||
check = emptyFormElements(form_obj, form_name.elements[i].name);
|
check = emptyFormElements(form_obj, form_name.elements[i].name);
|
||||||
if (check==false) {
|
if (check==false) {
|
||||||
element = form_name.elements[i].name;
|
element = form_name.elements[i].name;
|
||||||
@@ -592,7 +591,6 @@ function validateConnection(form_name, form_obj)
|
|||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user