Skip to content

Commit

Permalink
chore: delete dead code in project context (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora-Olivia-Ammann committed Jan 30, 2024
1 parent 954b279 commit 5159b8d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/dsp_tools/commands/project/models/context.py
Expand Up @@ -99,21 +99,9 @@ def __init__(self, context: Optional[dict[str, str]] = None):

self._rcontext = {v.iri: k for k, v in self._context.items()}

def __len__(self) -> int:
return len(self._context)

def __getitem__(self, key: str) -> OntoIri:
return self._context[key]

def __setitem__(self, key: str, value: OntoIri) -> None:
self._context[key] = value
self._rcontext[value.iri] = key

def __delitem__(self, key: str) -> None:
iri = self._context[key].iri
del self._context[key].iri
del self._rcontext[iri]

def __contains__(self, key: str) -> bool:
return key in self._context

Expand Down

0 comments on commit 5159b8d

Please sign in to comment.