Skip to content

Commit 3cd3871

Browse files
committed
remove dead code
1 parent 34b18dd commit 3cd3871

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎zeroconf/_protocol/incoming.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
UNPACK_3H = struct.Struct(b'!3H').unpack
5151
UNPACK_6H = struct.Struct(b'!6H').unpack
5252
UNPACK_HH = struct.Struct(b'!HH').unpack
53-
UNPACK_H = struct.Struct(b'!H').unpack
5453
UNPACK_HHiH = struct.Struct(b'!HHiH').unpack
5554

5655

@@ -178,10 +177,6 @@ def read_string(self, length: int) -> bytes:
178177
self.offset += length
179178
return info
180179

181-
def read_unsigned_short(self) -> int:
182-
"""Reads an unsigned short from the packet"""
183-
return cast(int, self.unpack(UNPACK_H, 2)[0])
184-
185180
def read_others(self) -> None:
186181
"""Reads the answers, authorities and additionals section of the
187182
packet"""

0 commit comments

Comments
 (0)