Skip to content

Commit

Permalink
Remove unused property functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Feb 23, 2024
1 parent 5853241 commit c93e9d9
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions atxm/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ class _Machine(StateMachine):
_idling
| _pausing
| _busying
|
# self transitions
_BUSY.to.itself(cond="_busy", unless="_pause")
| _BUSY.to.itself(cond="_busy", unless="_pause")
| _IDLE.to.itself(unless="_busy")
| _PAUSED.to.itself(cond="_pause")
)
Expand Down Expand Up @@ -118,18 +117,6 @@ def __init__(

super().__init__()

@property
def _clock(self):
return self.__CLOCK

@property
def _interval(self) -> Optional[float]:
return self._task.interval

@property
def _start_time(self) -> float:
return self._task.starttime

@property
def _busy(self) -> bool:
"""Returns True if the machine is busy."""
Expand Down Expand Up @@ -219,7 +206,7 @@ def _start(self, now: bool = False) -> Deferred:
return self._task.deferred
when = "now" if now else f"in {self._task.interval} seconds"
self.log.info(f"[atxm] starting async transaction machine {when}")
d = self._task.start(interval=self._interval, now=now)
d = self._task.start(interval=self._task.interval, now=now)
d.addErrback(self._handle_errors)
return d

Expand Down

0 comments on commit c93e9d9

Please sign in to comment.