Skip to content

Commit 49ff1e5

Browse files
committed
rtr_manager.py: remove confusing functions from ValidationResult
The validation result could become confusing becuase as_valid and ad_invalid could both be true. Same goes for length_valid and length_invalid. Fix #11
1 parent c784016 commit 49ff1e5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

rtrlib/rtr_manager.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,6 @@ def as_invalid(self):
479479
return (self.is_invalid and
480480
any(reason.as_invalid for reason in self._reason))
481481

482-
@property
483-
def as_valid(self):
484-
"""True if any one matching record has been found."""
485-
return any(reason.as_valid for reason in self._reason)
486-
487482
@property
488483
def length_invalid(self):
489484
r"""True if at least one matching record has a miss matching prefix \
@@ -492,11 +487,6 @@ def length_invalid(self):
492487
return (self.is_invalid and
493488
any(reason.length_invalid for reason in self._reason))
494489

495-
@property
496-
def length_valid(self):
497-
"""True if any one matching record was found"""
498-
return any(reason.length_valid for reason in self._reason)
499-
500490
@property
501491
def reason(self):
502492
"""List of :class:`.Reason` ."""

0 commit comments

Comments
 (0)