Skip to content

Commit 77bf9e4

Browse files
helgimboersma
authored andcommitted
ref(models): remove unused functions
These functions are not used anywhere
1 parent b10821f commit 77bf9e4

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

rootfs/api/models.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,6 @@ def validate_reserved_names(value):
9494
raise ValidationError('{} is a reserved name.'.format(value))
9595

9696

97-
def validate_comma_separated(value):
98-
"""Error if the value doesn't look like a list of hostnames or IP addresses
99-
separated by commas.
100-
"""
101-
if not re.search(r'^[a-zA-Z0-9-,\.]+$', value):
102-
raise ValidationError(
103-
"{} should be a comma-separated list".format(value))
104-
105-
106-
def validate_domain(value):
107-
"""Error if the domain contains unexpected characters."""
108-
if not re.search(r'^[a-zA-Z0-9-\.]+$', value):
109-
raise ValidationError('"{}" contains unexpected characters'.format(value))
110-
111-
11297
def validate_certificate(value):
11398
try:
11499
crypto.load_certificate(crypto.FILETYPE_PEM, value)

0 commit comments

Comments
 (0)