]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Now that rdata are immutable, there is no point to the validate() method, so
authorBob Halley <halley@dnspython.org>
Wed, 17 Jun 2020 15:00:34 +0000 (08:00 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 17 Jun 2020 15:00:34 +0000 (08:00 -0700)
remove it.

dns/rdata.py

index ae668b3adf3a3a294241b85d674e3efd28405fe1..90a44249b85b52e18ab67ad46e41dec050b5c5ae 100644 (file)
@@ -200,21 +200,6 @@ class Rdata:
 
         return self.to_wire(origin=origin, canonicalize=True)
 
-    def validate(self):
-        """Check that the current contents of the rdata's fields are
-        valid.
-
-        If you change an rdata by assigning to its fields,
-        it is a good idea to call validate() when you are done making
-        changes.
-
-        Raises various exceptions if there are problems.
-
-        Returns ``None``.
-        """
-
-        dns.rdata.from_text(self.rdclass, self.rdtype, self.to_text())
-
     def __repr__(self):
         covers = self.covers()
         if covers == dns.rdatatype.NONE: