Skip to content

Commit afa99fc

Browse files
DPE-7726: Remove unnecessary property app_units() and scoped_peer_data()
Housekeeping cleanup.
1 parent f599655 commit afa99fc

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/charm.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -461,21 +461,6 @@ def patroni_scrape_config(self) -> list[dict]:
461461
}
462462
]
463463

464-
@property
465-
def app_units(self) -> set[Unit]:
466-
"""The peer-related units in the application."""
467-
if not self._peers:
468-
return set()
469-
470-
return {self.unit, *self._peers.units}
471-
472-
def scoped_peer_data(self, scope: SCOPES) -> dict | None:
473-
"""Returns peer data based on scope."""
474-
if scope == APP_SCOPE:
475-
return self.app_peer_data
476-
elif scope == UNIT_SCOPE:
477-
return self.unit_peer_data
478-
479464
@property
480465
def app_peer_data(self) -> dict:
481466
"""Application peer relation data object."""

0 commit comments

Comments
 (0)