Skip to content

Commit 57d0f3f

Browse files
committed
drop unused
1 parent 94f8c24 commit 57d0f3f

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

zeroconf/_dns.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,6 @@ def __init__(self, name: str, type_: int, class_: int) -> None:
7878
self.class_ = class_ & _CLASS_MASK
7979
self.unique = (class_ & _CLASS_UNIQUE) != 0
8080

81-
@property
82-
def max_size(self) -> int:
83-
"""Maximum size of the base record in the packet."""
84-
return _BASE_MAX_SIZE + self._name_max_size()
85-
86-
def _name_max_size(self) -> int:
87-
"""Maximum size of the name in the packet."""
88-
return len(self.name.encode('utf-8')) + _LEN_SHORT
89-
9081
def _entry_tuple(self) -> Tuple[str, int, int]:
9182
"""Entry Tuple for DNSEntry."""
9283
return (self.key, self.type, self.class_)
@@ -315,11 +306,6 @@ def __init__(self, name: str, type_: int, class_: int, ttl: int, alias: str) ->
315306
super().__init__(name, type_, class_, ttl)
316307
self.alias = alias
317308

318-
@property
319-
def max_size(self) -> int:
320-
"""Maximum size of the record in the packet."""
321-
return super().max_size + len(self.alias.encode('utf-8')) + _LEN_BYTE
322-
323309
@property
324310
def max_size_compressed(self) -> int:
325311
"""Maximum size of the record in the packet assuming the name has been compressed."""

0 commit comments

Comments
 (0)