Skip to content

Commit

Permalink
fix: remove unused unmarshaller code (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Oct 7, 2022
1 parent 60567e3 commit 3613ff8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 0 additions & 3 deletions src/dbus_fast/_private/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ class HeaderField(Enum):
SENDER = 7
SIGNATURE = 8
UNIX_FDS = 9


HEADER_NAME_MAP = {field.value: field.name for field in HeaderField}
10 changes: 0 additions & 10 deletions src/dbus_fast/_private/unmarshaller.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ import cython
from ..signature import SignatureType


cdef str HEADER_DESTINATION
cdef str HEADER_PATH
cdef str HEADER_INTERFACE
cdef str HEADER_MEMBER
cdef str HEADER_ERROR_NAME
cdef str HEADER_REPLY_SERIAL
cdef str HEADER_SENDER
cdef str HEADER_SIGNATURE


cdef unsigned int UINT32_SIZE
cdef unsigned int INT16_SIZE
cdef unsigned int HEADER_ARRAY_OF_STRUCT_SIGNATURE_POSITION
Expand Down
2 changes: 1 addition & 1 deletion src/dbus_fast/_private/unmarshaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ..errors import InvalidMessageError
from ..message import Message
from ..signature import SignatureType, Variant, get_signature_tree
from .constants import BIG_ENDIAN, LITTLE_ENDIAN, PROTOCOL_VERSION, HeaderField
from .constants import BIG_ENDIAN, LITTLE_ENDIAN, PROTOCOL_VERSION

IS_LITTLE_ENDIAN = sys.byteorder == "little"
IS_BIG_ENDIAN = sys.byteorder == "big"
Expand Down

0 comments on commit 3613ff8

Please sign in to comment.