diff --git a/odxtools/diaglayers/hierarchyelement.py b/odxtools/diaglayers/hierarchyelement.py index 45ef1eb2..7032c6c3 100644 --- a/odxtools/diaglayers/hierarchyelement.py +++ b/odxtools/diaglayers/hierarchyelement.py @@ -8,8 +8,6 @@ Union, cast) from xml.etree import ElementTree -from deprecation import deprecated - from ..additionalaudience import AdditionalAudience from ..admindata import AdminData from ..comparaminstance import ComparamInstance @@ -724,10 +722,6 @@ def get_can_receive_id(self, return int(result) - @deprecated(details="use get_can_receive_id()") # type: ignore[misc] - def get_receive_id(self) -> Optional[int]: - return self.get_can_receive_id() - def get_can_send_id(self, protocol: Optional[Union[str, "Protocol"]] = None) -> Optional[int]: """CAN ID to which the ECU sends replies to diagnostic messages""" @@ -753,10 +747,6 @@ def get_can_send_id(self, protocol: Optional[Union[str, "Protocol"]] = None) -> return int(result) - @deprecated(details="use get_can_send_id()") # type: ignore[misc] - def get_send_id(self) -> Optional[int]: - return self.get_can_send_id() - def get_can_func_req_id(self, protocol: Optional[Union[str, "Protocol"]] = None) -> Optional[int]: """CAN Functional Request Id.""" diff --git a/odxtools/inputparam.py b/odxtools/inputparam.py index 912b1678..0c38e168 100644 --- a/odxtools/inputparam.py +++ b/odxtools/inputparam.py @@ -3,8 +3,6 @@ from typing import Any, Dict, List, Optional from xml.etree import ElementTree -from deprecation import deprecated - from .dopbase import DopBase from .element import NamedElement from .exceptions import odxrequire @@ -49,8 +47,3 @@ def _resolve_snrefs(self, context: SnRefContext) -> None: def dop_base(self) -> DopBase: """The data object property describing this parameter.""" return self._dop_base - - @property - @deprecated(details="use .dop_base") # type: ignore[misc] - def dop(self) -> DopBase: - return self._dop_base diff --git a/odxtools/message.py b/odxtools/message.py index 51f1fb9c..ce49b7e1 100644 --- a/odxtools/message.py +++ b/odxtools/message.py @@ -2,8 +2,6 @@ from dataclasses import dataclass from typing import TYPE_CHECKING, Union -from deprecation import deprecated - from .odxtypes import ParameterValue, ParameterValueDict if TYPE_CHECKING: @@ -29,8 +27,3 @@ class Message: def __getitem__(self, key: str) -> ParameterValue: return self.param_dict[key] - - @property - @deprecated("use .coding_object") # type: ignore[misc] - def structure(self) -> Union["Request", "Response"]: - return self.coding_object diff --git a/odxtools/outputparam.py b/odxtools/outputparam.py index ee9a283d..2e9b3c67 100644 --- a/odxtools/outputparam.py +++ b/odxtools/outputparam.py @@ -3,8 +3,6 @@ from typing import Any, Dict, List, Optional from xml.etree import ElementTree -from deprecation import deprecated - from .dopbase import DopBase from .element import IdentifiableElement from .exceptions import odxrequire @@ -40,8 +38,3 @@ def _resolve_snrefs(self, context: SnRefContext) -> None: def dop_base(self) -> DopBase: """The data object property describing this parameter.""" return self._dop_base - - @property - @deprecated(details="use .dop_base") # type: ignore[misc] - def dop(self) -> DopBase: - return self._dop_base diff --git a/odxtools/uds.py b/odxtools/uds.py index cfe8ce51..be02b9f6 100644 --- a/odxtools/uds.py +++ b/odxtools/uds.py @@ -3,8 +3,6 @@ from itertools import chain from typing import Optional -from deprecation import deprecated - import odxtools.obd as obd @@ -170,9 +168,3 @@ def is_response_pending(telegram_payload: bytes, request_sid: Optional[int] = No # if all of the above applies, we received a "stay tuned" response return True - - -# previous versions of odxtools had a typo here. hit happens! -@deprecated(details="use is_response_pending()") # type: ignore[misc] -def is_reponse_pending(telegram_payload: bytes, request_sid: Optional[int] = None) -> bool: - return is_response_pending(telegram_payload, request_sid)