diff options
author | Bob Halley <halley@dnspython.org> | 2020-09-01 06:53:03 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-09-01 06:53:03 -0700 |
commit | 173a2da9454967528c848f658ae15ce930a05e68 (patch) | |
tree | daa28a730def420197a5141bfba6eab9a22343ee | |
parent | 97e35f2b0ec57a38b473744f1cd7783044bc1129 (diff) | |
download | dnspython-173a2da9454967528c848f658ae15ce930a05e68.tar.gz |
remove obsolete change indication code from WritableVersion deletion code
-rw-r--r-- | dns/versioned.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/dns/versioned.py b/dns/versioned.py index 9f0caa1..686a83b 100644 --- a/dns/versioned.py +++ b/dns/versioned.py @@ -91,8 +91,6 @@ class WritableVersion(Version): if name in self.nodes: del self.nodes[name] self.changed.add(name) - return True - return False def put_rdataset(self, name, rdataset): node = self._maybe_cow(name) @@ -100,12 +98,9 @@ class WritableVersion(Version): def delete_rdataset(self, name, rdtype, covers): node = self._maybe_cow(name) - if not node.get_rdataset(self.zone.rdclass, rdtype, covers): - return False node.delete_rdataset(self.zone.rdclass, rdtype, covers) if len(node) == 0: del self.nodes[name] - return True @dns.immutable.immutable |