mirror of
https://github.com/espressif/openthread.git
synced 2026-10-20 22:48:17 +00:00
[toranj] remove unused age property when parsing cache table (#4599)
This commit is contained in:
committed by
Jonathan Hui
parent
ee0dc4f9bb
commit
bb86ae4c76
@@ -1548,8 +1548,6 @@ class AddressCacheEntry(object):
|
|||||||
# separator
|
# separator
|
||||||
dict = {item.split(':')[0]: item.split(':')[1] for item in items[3:]}
|
dict = {item.split(':')[0]: item.split(':')[1] for item in items[3:]}
|
||||||
|
|
||||||
self._age = int(dict['age'], 0)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def address(self):
|
def address(self):
|
||||||
return self._address
|
return self._address
|
||||||
@@ -1558,10 +1556,6 @@ class AddressCacheEntry(object):
|
|||||||
def rloc16(self):
|
def rloc16(self):
|
||||||
return self._rloc16
|
return self._rloc16
|
||||||
|
|
||||||
@property
|
|
||||||
def age(self):
|
|
||||||
return self._age
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'AddressCacheEntry({})'.format(self.__dict__)
|
return 'AddressCacheEntry({})'.format(self.__dict__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user