Remove dead code.

This will already be checked by WebKitBytes._basic_validation.
This commit is contained in:
Florian Bruhin 2015-07-24 18:23:17 +02:00
parent 694fbe053d
commit cbed62cafc

View File

@ -963,8 +963,6 @@ class WebKitBytesList(List):
vals = super().transform(value)
for val in vals:
self.bytestype.validate(val)
if None in vals and not self.none_ok:
raise configexc.ValidationError(value, "items may not be empty!")
if self.length is not None and len(vals) != self.length:
raise configexc.ValidationError(value, "exactly {} values need to "
"be set!".format(self.length))