Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
leoetlino committed Aug 18, 2018
1 parent 4e37957 commit b0d8ed2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions aamp/aamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,6 @@ def _get_param_data_size(self, offset: int) -> int:
def _register_string(self, s: str) -> None:
self._crc32_to_string_map[zlib.crc32(s.encode())] = s

# _NodeToOffsetMap = typing.Dict[typing.Tuple[ParameterType, int], int]
def _hash(o):
def _freeze(o):
if isinstance(o, dict):
return frozenset({ k: _freeze(v) for k,v in o.items()}.items())
if isinstance(o, list):
return tuple([_freeze(v) for v in o])
return o
return hash(_freeze(o))

class _ListWriteContext(typing.NamedTuple):
list_offset_writer: PlaceholderOffsetWriter
obj_offset_writer: PlaceholderOffsetWriter
Expand Down

0 comments on commit b0d8ed2

Please sign in to comment.