Skip to content

Commit

Permalink
Remove unused code (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
erlendvollset authored Sep 16, 2024
1 parent 327467f commit f169613
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions cognite/client/data_classes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,6 @@ def dump(self, camel_case: Literal[True] = True) -> dict[str, Any]:
def _get_update_properties(cls, item: CogniteResource | None = None) -> list[PropertySpec]:
raise NotImplementedError

@classmethod
def _get_extra_identifying_properties(cls, item: CogniteResource | None = None) -> dict[str, Any]:
# This method is used to provide additional identifying properties for the update object.
# It is intended to be overridden by subclasses that need to provide additional identifying properties.
return {}


T_CogniteUpdate = TypeVar("T_CogniteUpdate", bound=CogniteUpdate)

Expand Down
6 changes: 0 additions & 6 deletions cognite/client/data_classes/hosted_extractors/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ def _get_update_properties(cls, item: CogniteResource | None = None) -> list[Pro
return []
return _SOURCE_UPDATE_BY_TYPE[item._type]._get_update_properties(item)

@classmethod
def _get_extra_identifying_properties(cls, item: CogniteResource | None = None) -> dict[str, Any]:
if not isinstance(item, SourceWrite):
return {}
return {"type": item._type}


class EventHubSourceWrite(SourceWrite):
"""A hosted extractor source represents an external source system on the internet.
Expand Down

0 comments on commit f169613

Please sign in to comment.